stop all updates when "Over Data" and "Over WiFi" are both disabled
fdroid/fdroidclient#1457 fdroid/fdroidclient#1451
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user