stop all updates when "Over Data" and "Over WiFi" are both disabled


This commit is contained in:
Hans-Christoph Steiner 2018-07-13 17:04:21 +02:00
parent a12425cb92
commit a912eebe5b

@ -402,9 +402,9 @@ public class UpdateService extends JobIntentService {
sendNoInternetToast();
}
return;
} else if (manualUpdate || forcedUpdate) {
} else if ((manualUpdate || forcedUpdate) && fdroidPrefs.isOnDemandDownloadAllowed()) {
Utils.debugLog(TAG, "manually requested or forced update");
} else if (!fdroidPrefs.isBackgroundDownloadAllowed()) {
} else if (!fdroidPrefs.isBackgroundDownloadAllowed() && !fdroidPrefs.isOnDemandDownloadAllowed()) {
Utils.debugLog(TAG, "don't run update");
return;
}