Reset widget on manual exit as well.
This commit is contained in:
parent
87c160610f
commit
b6730f5a93
|
@ -380,6 +380,10 @@ class NavigationActivity : AppCompatActivity() {
|
|||
|
||||
private fun exit() {
|
||||
Timber.d("User choose to exit the app")
|
||||
|
||||
// Broadcast that the service is being shutdown
|
||||
RxBus.stopCommandPublisher.onNext(Unit)
|
||||
|
||||
lifecycleSupport.onDestroy()
|
||||
finishAndRemoveTask()
|
||||
}
|
||||
|
|
|
@ -68,7 +68,6 @@ class RxBus {
|
|||
PublishSubject.create()
|
||||
val stopCommandObservable: Observable<Unit> =
|
||||
stopCommandPublisher.observeOn(mainThread())
|
||||
|
||||
}
|
||||
|
||||
data class StateWithTrack(
|
||||
|
|
Loading…
Reference in New Issue