mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Refactoring
This commit is contained in:
parent
380fa06dbe
commit
80c7e8adff
1 changed files with 3 additions and 2 deletions
|
@ -890,8 +890,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
}
|
||||
|
||||
private void onAlarm(Intent intent) {
|
||||
Bundle command = new Bundle();
|
||||
schedule(this, true);
|
||||
|
||||
Bundle command = new Bundle();
|
||||
command.putString("name", "eval");
|
||||
command.putBoolean("sync", true);
|
||||
liveAccountNetworkState.post(command);
|
||||
|
@ -900,7 +901,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
private void onWatchdog(Intent intent) {
|
||||
EntityLog.log(this, "Watchdog");
|
||||
schedule(this, false);
|
||||
networkCallback.onCapabilitiesChanged(null, null);
|
||||
updateNetworkState(null, "watchdog");
|
||||
}
|
||||
|
||||
private NotificationCompat.Builder getNotificationService(Integer accounts, Integer operations) {
|
||||
|
|
Loading…
Reference in a new issue