Skip to content

Commit

Permalink
sync only on wifi
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
  • Loading branch information
tobiasKaminsky committed Oct 22, 2024
1 parent 9351e07 commit 92faa34
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 92faa34

Please sign in to comment.