mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
android: change existing work policy to CANCEL_AND_REENQUEUE
This commit is contained in:
parent
f0a7ffb4b4
commit
cb66144055
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class MainActivity : ComponentActivity() {
|
|||
WorkManager.getInstance(this@MainActivity)
|
||||
.enqueueUniquePeriodicWork(
|
||||
"updateSavedPosts",
|
||||
ExistingPeriodicWorkPolicy.KEEP,
|
||||
ExistingPeriodicWorkPolicy.CANCEL_AND_REENQUEUE,
|
||||
postUpdateWorkRequest,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue