1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Try to fix notification not showing (ref #966)

This commit is contained in:
Felix Ableitner 2017-10-11 12:26:08 +09:00
parent ee0e361101
commit 8e75a88b6a

View file

@ -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<Void, Void, Void> {
public StartupTask() {
mCurrentState = State.STARTING;
onApiChange(State.STARTING);
}
@Override