Skip to content

Commit

Permalink
Change existing work policy to UPDATE (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup authored Apr 10, 2024
1 parent 68ed9b1 commit 2c05b63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2c05b63

Please sign in to comment.