Check schedule on scheduling next poll

This commit is contained in:
M66B
2020-01-14 09:02:37 +01:00
parent 4d52549b7c
commit 96cd456a3d
2 changed files with 8 additions and 4 deletions

View File

@@ -1604,7 +1604,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
ServiceUI.schedule(context, enabled);
}
private static long[] getSchedule(Context context) {
static long[] getSchedule(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if (!prefs.getBoolean("schedule", false))
return null;