pull/155/head
M66B 6 years ago
parent 3b9bf64578
commit 81368e7bdf

@ -193,11 +193,6 @@
</intent-filter>
</service>
<service
android:name=".JobDaily"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<service
android:name=".ServiceTileSynchronize"
android:icon="@drawable/baseline_sync_disabled_24"

@ -1,23 +0,0 @@
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);
}
}

@ -151,7 +151,6 @@ public class ServiceSynchronize extends LifecycleService {
});
WorkerCleanup.queue();
JobDaily.cancel(this);
}
@Override

Loading…
Cancel
Save