Retry LibraryUpdateJob later if Wi-Fi condition not met
(cherry picked from commit 88e9fefa59b3f7f77ab3ddcab1b039f81534c83e)
This commit is contained in:
parent
3acb0f0dbd
commit
efd90aea0f
@ -136,7 +136,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
|
||||
val preferences = Injekt.get<LibraryPreferences>()
|
||||
val restrictions = preferences.libraryUpdateDeviceRestriction().get()
|
||||
if ((DEVICE_ONLY_ON_WIFI in restrictions) && !context.isConnectedToWifi()) {
|
||||
return Result.failure()
|
||||
return Result.retry()
|
||||
}
|
||||
|
||||
// Find a running manual worker. If exists, try again later
|
||||
|
Loading…
x
Reference in New Issue
Block a user