Don't replace exchange rate update worker if it is already registered
This commit is contained in:
parent
742c90d7e9
commit
c7e99feb1c
@ -17,7 +17,7 @@ class CurrencyRepository(
|
||||
.build()
|
||||
WorkManager.getInstance(context).enqueueUniquePeriodicWork(
|
||||
"ExchangeRates",
|
||||
ExistingPeriodicWorkPolicy.REPLACE, currencyWorker
|
||||
ExistingPeriodicWorkPolicy.KEEP, currencyWorker
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user