Disable poll outside of schedule

This commit is contained in:
M66B
2019-12-29 12:26:51 +01:00
parent f5306720e1
commit 4f7917d8bf
3 changed files with 4 additions and 8 deletions

View File

@@ -1528,7 +1528,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, pi);
WorkerPoll.init(context);
WorkerPoll.init(context, enabled);
}
private static long[] getSchedule(Context context) {