diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 92b7dd9185..6c1da01fa9 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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) {