1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-07 15:06:44 +00:00

Fixed watchdog

This commit is contained in:
M66B 2019-05-13 08:38:04 +02:00
parent 0baef434e6
commit 37d846a0a9

View file

@ -55,7 +55,7 @@ public class WorkerWatchdog extends Worker {
Log.i("Queuing " + getName() + " every " + WATCHDOG_INTERVAL + " minutes");
PeriodicWorkRequest workRequest =
new PeriodicWorkRequest.Builder(WorkerCleanup.class, WATCHDOG_INTERVAL, TimeUnit.MINUTES)
new PeriodicWorkRequest.Builder(WorkerWatchdog.class, WATCHDOG_INTERVAL, TimeUnit.MINUTES)
.build();
WorkManager.getInstance(context)
.enqueueUniquePeriodicWork(getName(), ExistingPeriodicWorkPolicy.KEEP, workRequest);