mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Merge pull request #13847 from nextcloud/syncOnWifi
2way sync: sync only on wifi
This commit is contained in:
commit
7c4f3d6c0d
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ class InternalTwoWaySyncWork(
|
|||
var result = true
|
||||
|
||||
if (powerManagementService.isPowerSavingEnabled ||
|
||||
!connectivityService.isConnected || connectivityService.isInternetWalled
|
||||
!connectivityService.isConnected ||
|
||||
connectivityService.isInternetWalled ||
|
||||
!connectivityService.connectivity.isWifi
|
||||
) {
|
||||
Log_OC.d(TAG, "Not starting due to constraints!")
|
||||
return Result.success()
|
||||
|
|
Loading…
Reference in a new issue