Fix 4g retry

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-09-22 21:36:17 +02:00 committed by tobiasKaminsky
parent f6ae6784e9
commit f606e88a89
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

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