Completely stop and release the player on dismissing the app.
This commit is contained in:
parent
147d7cd46e
commit
70f8b75019
|
@ -82,8 +82,8 @@ class PlaybackService : MediaLibraryService(), KoinComponent {
|
|||
}
|
||||
|
||||
override fun onTaskRemoved(rootIntent: Intent?) {
|
||||
Timber.i("Pausing the playback because we were swiped away")
|
||||
player.pause()
|
||||
Timber.i("Stopping the playback because we were swiped away")
|
||||
releasePlayerAndSession()
|
||||
}
|
||||
|
||||
private fun releasePlayerAndSession() {
|
||||
|
|
Loading…
Reference in New Issue