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:
parent
ee0e361101
commit
8e75a88b6a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue