mirror of https://github.com/M66B/FairEmail.git
24 lines
601 B
24 lines
601 B
package eu.faircode.email;
|
|
|
|
import android.app.job.JobParameters;
|
|
import android.app.job.JobScheduler;
|
|
import android.app.job.JobService;
|
|
import android.content.Context;
|
|
|
|
public class JobDaily extends JobService {
|
|
@Override
|
|
public boolean onStartJob(JobParameters params) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean onStopJob(JobParameters params) {
|
|
return false;
|
|
}
|
|
|
|
public static void cancel(Context context) {
|
|
JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
|
|
scheduler.cancel(1001);
|
|
}
|
|
}
|