From f606e88a89ca1a56d4aa6de41a52e8fe609994ef Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 22 Sep 2017 21:36:17 +0200 Subject: [PATCH] Fix 4g retry Signed-off-by: Mario Danic --- src/main/java/com/owncloud/android/utils/ReceiversHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/utils/ReceiversHelper.java b/src/main/java/com/owncloud/android/utils/ReceiversHelper.java index 6ee7950646..35fd472c65 100644 --- a/src/main/java/com/owncloud/android/utils/ReceiversHelper.java +++ b/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(); } }