|
|
@ -205,8 +205,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "reset":
|
|
|
|
case "reset":
|
|
|
|
lastLost = 0;
|
|
|
|
onReset();
|
|
|
|
onReload("reset");
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "oneshot_start":
|
|
|
|
case "oneshot_start":
|
|
|
@ -277,6 +276,11 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void onReset() {
|
|
|
|
|
|
|
|
lastLost = 0;
|
|
|
|
|
|
|
|
onReload("reset");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onOneshot(boolean start) {
|
|
|
|
private void onOneshot(boolean start) {
|
|
|
|
AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
|
|
|
AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
|
|
|
|
|
|
|
|
|
|
|