Ensure foreground notification is always displayed
This commit is contained in:
parent
dd8c908dc7
commit
47e3b8ec46
|
@ -69,7 +69,6 @@ abstract class SyncService : Service() {
|
|||
taskExecutor = sessionComponent.taskExecutor()
|
||||
coroutineDispatchers = sessionComponent.coroutineDispatchers()
|
||||
backgroundDetectionObserver = matrix.backgroundDetectionObserver
|
||||
onStart(isInitialSync)
|
||||
if (isRunning.get()) {
|
||||
Timber.i("Received a start while was already syncing... ignore")
|
||||
} else {
|
||||
|
@ -79,6 +78,7 @@ abstract class SyncService : Service() {
|
|||
}
|
||||
}
|
||||
}
|
||||
onStart(isInitialSync)
|
||||
// No intent just start the service, an alarm will should call with intent
|
||||
return START_STICKY
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue