Merge pull request #13847 from nextcloud/syncOnWifi

2way sync: sync only on wifi
This commit is contained in:
Tobias Kaminsky 2024-10-22 08:57:09 +02:00 committed by GitHub
commit 7c4f3d6c0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()