From 37d846a0a9bc5a2e17270327c8138cc9a439c567 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 May 2019 08:38:04 +0200 Subject: [PATCH] Fixed watchdog --- app/src/main/java/eu/faircode/email/WorkerWatchdog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/WorkerWatchdog.java b/app/src/main/java/eu/faircode/email/WorkerWatchdog.java index eb23973dec..5d39209b4e 100644 --- a/app/src/main/java/eu/faircode/email/WorkerWatchdog.java +++ b/app/src/main/java/eu/faircode/email/WorkerWatchdog.java @@ -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);