Fixed start on reload

This commit is contained in:
M66B 2019-05-09 20:25:27 +02:00
parent e9298603dd
commit 619dc6a07c
1 changed files with 4 additions and 1 deletions

View File

@ -308,8 +308,11 @@ public class ServiceSynchronize extends LifecycleService {
am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + ONESHOT_DURATION, piOneshot);
else
am.setAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + ONESHOT_DURATION, piOneshot);
if (!started)
onReload(true, "oneshot start");
} else
onReload(true, "oneshot");
onReload(true, "oneshot end");
}
private void queue_reload(final boolean start, final boolean clear, final String reason) {