Added automation support

This commit is contained in:
M66B
2019-02-14 13:28:14 +00:00
parent 572607a76b
commit 582ce275db
6 changed files with 115 additions and 19 deletions

View File

@@ -3239,6 +3239,9 @@ public class ServiceSynchronize extends LifecycleService {
am.cancel(piSchedule);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
if (!prefs.getBoolean("schedule", false))
return;
int minuteStart = prefs.getInt("schedule_start", 0);
int minuteEnd = prefs.getInt("schedule_end", 0);