mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
Remove network constrait for periodically offline operation
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
c8a6d819d3
commit
1af6b4b89f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class OfflineOperationsWorker(
|
||||||
"$jobName -----------------------------------\nOfflineOperationsWorker started\n-----------------------------------"
|
"$jobName -----------------------------------\nOfflineOperationsWorker started\n-----------------------------------"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (NetworkChangeReceiver.isNetworkAvailable(context)) {
|
if (!NetworkChangeReceiver.isNetworkAvailable(context)) {
|
||||||
Log_OC.d(TAG, "OfflineOperationsWorker cancelled, no internet connection.")
|
Log_OC.d(TAG, "OfflineOperationsWorker cancelled, no internet connection.")
|
||||||
return Result.success()
|
return Result.success()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue