diff --git a/src/main/java/com/nutomic/syncthingandroid/service/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/service/SyncthingService.java index 0c025b80..93156220 100644 --- a/src/main/java/com/nutomic/syncthingandroid/service/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/service/SyncthingService.java @@ -202,6 +202,7 @@ public class SyncthingService extends Service implements } updateState(); mPreferences.registerOnSharedPreferenceChangeListener(this); + mNotificationHandler.updatePersistentNotification(this, mCurrentState); } /** @@ -211,7 +212,7 @@ public class SyncthingService extends Service implements private class StartupTask extends AsyncTask { public StartupTask() { - mCurrentState = State.STARTING; + onApiChange(State.STARTING); } @Override