Replace work manager by alarm for polling

This commit is contained in:
M66B
2020-01-12 15:38:00 +01:00
parent 70d1344857
commit ff0e5641fc
6 changed files with 92 additions and 147 deletions

View File

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