mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-23 07:10:11 -04:00
UpdateService: fix update scheduling condition
This was blocking updates being scheduled when either data or wifi updates were disabled. We only want to completely disable the update service when both are disbaled though. Ref: #1623
This commit is contained in:
@@ -146,8 +146,7 @@ public class UpdateService extends JobIntentService {
|
||||
int wifi = prefs.getOverWifi();
|
||||
boolean scheduleNewJob =
|
||||
interval != Preferences.UPDATE_INTERVAL_DISABLED
|
||||
&& data != Preferences.OVER_NETWORK_NEVER
|
||||
&& wifi != Preferences.OVER_NETWORK_NEVER;
|
||||
&& !(data == Preferences.OVER_NETWORK_NEVER && wifi == Preferences.OVER_NETWORK_NEVER);
|
||||
|
||||
if (Build.VERSION.SDK_INT < 21) {
|
||||
Intent intent = new Intent(context, UpdateService.class);
|
||||
|
||||
Reference in New Issue
Block a user