mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +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();
|
updateState();
|
||||||
mPreferences.registerOnSharedPreferenceChangeListener(this);
|
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> {
|
private class StartupTask extends AsyncTask<Void, Void, Void> {
|
||||||
|
|
||||||
public StartupTask() {
|
public StartupTask() {
|
||||||
mCurrentState = State.STARTING;
|
onApiChange(State.STARTING);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue