Completely stop and release the player on dismissing the app.

This commit is contained in:
tzugen 2022-06-07 16:18:26 +02:00
parent 147d7cd46e
commit 70f8b75019
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 2 additions and 2 deletions

View File

@ -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() {