mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Refactoring
This commit is contained in:
@@ -205,8 +205,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
break;
|
||||
|
||||
case "reset":
|
||||
lastLost = 0;
|
||||
onReload("reset");
|
||||
onReset();
|
||||
break;
|
||||
|
||||
case "oneshot_start":
|
||||
@@ -277,6 +276,11 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
}
|
||||
}
|
||||
|
||||
private void onReset() {
|
||||
lastLost = 0;
|
||||
onReload("reset");
|
||||
}
|
||||
|
||||
private void onOneshot(boolean start) {
|
||||
AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user