Browse Source

Fix 4g retry

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 years ago
parent
commit
f606e88a89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/owncloud/android/utils/ReceiversHelper.java

+ 1 - 1
src/main/java/com/owncloud/android/utils/ReceiversHelper.java

@@ -44,7 +44,7 @@ public class ReceiversHelper {
         BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
             @Override
             public void onReceive(Context context, Intent intent) {
-                if (Device.getNetworkType(context).equals(JobRequest.NetworkType.UNMETERED)) {
+                if (!Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY)) {
                     FilesSyncHelper.restartJobsIfNeeded();
                 }
             }