mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-27 07:46:09 +01:00
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…
x
Reference in New Issue
Block a user