diff --git a/app/src/main/java/eu/faircode/email/WorkerDailyRules.java b/app/src/main/java/eu/faircode/email/WorkerDailyRules.java index 2949769542..5d32badd0a 100644 --- a/app/src/main/java/eu/faircode/email/WorkerDailyRules.java +++ b/app/src/main/java/eu/faircode/email/WorkerDailyRules.java @@ -158,7 +158,7 @@ public class WorkerDailyRules extends Worker { new PeriodicWorkRequest.Builder(WorkerDailyRules.class, 1, TimeUnit.DAYS) .setInitialDelay(delay, TimeUnit.MILLISECONDS); WorkManager.getInstance(context) - .enqueueUniquePeriodicWork(getName(), ExistingPeriodicWorkPolicy.UPDATE, builder.build()); + .enqueueUniquePeriodicWork(getName(), ExistingPeriodicWorkPolicy.KEEP, builder.build()); EntityLog.log(context, EntityLog.Type.Rules, "Queued " + getName()); } else { EntityLog.log(context, EntityLog.Type.Rules, "Cancelling " + getName()); diff --git a/app/src/main/java/eu/faircode/email/WorkerSync.java b/app/src/main/java/eu/faircode/email/WorkerSync.java index a37ecffb25..7a2e84fee3 100644 --- a/app/src/main/java/eu/faircode/email/WorkerSync.java +++ b/app/src/main/java/eu/faircode/email/WorkerSync.java @@ -98,7 +98,7 @@ public class WorkerSync extends Worker { .setConstraints(new Constraints.Builder() .setRequiredNetworkType(NetworkType.CONNECTED).build()); WorkManager.getInstance(context) - .enqueueUniquePeriodicWork(getName(), ExistingPeriodicWorkPolicy.UPDATE, builder.build()); + .enqueueUniquePeriodicWork(getName(), ExistingPeriodicWorkPolicy.KEEP, builder.build()); Log.i("Queued " + getName()); } else { EntityLog.log(context, EntityLog.Type.Cloud,