diff --git a/app/src/main/java/at/bitfire/icsdroid/PeriodicSyncWorker.kt b/app/src/main/java/at/bitfire/icsdroid/PeriodicSyncWorker.kt index 6a6d1c40..b4a611ad 100644 --- a/app/src/main/java/at/bitfire/icsdroid/PeriodicSyncWorker.kt +++ b/app/src/main/java/at/bitfire/icsdroid/PeriodicSyncWorker.kt @@ -26,7 +26,7 @@ class PeriodicSyncWorker( .setRequiredNetworkType(NetworkType.CONNECTED) // network connection is usually required for synchronization .build()) .build() - wm.enqueueUniquePeriodicWork(NAME, ExistingPeriodicWorkPolicy.REPLACE, request) + wm.enqueueUniquePeriodicWork(NAME, ExistingPeriodicWorkPolicy.UPDATE, request) } else wm.cancelUniqueWork(NAME) }