Revert "Update work"

This reverts commit 478af42d1e.
pull/215/head
M66B 3 months ago
parent a03cf0af30
commit 17265d17b7

@ -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());

@ -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,

Loading…
Cancel
Save