Release PlaybackManager when quitting MusicService
This commit is contained in:
parent
165d180fe6
commit
1033711357
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ class MusicService : MediaBrowserServiceCompat(),
|
||||||
pause()
|
pause()
|
||||||
stopForeground(true)
|
stopForeground(true)
|
||||||
notificationManager?.cancel(PlayingNotification.NOTIFICATION_ID)
|
notificationManager?.cancel(PlayingNotification.NOTIFICATION_ID)
|
||||||
playbackManager.closeAudioEffectSession()
|
playbackManager.release()
|
||||||
audioManager?.abandonAudioFocus(audioFocusListener)
|
audioManager?.abandonAudioFocus(audioFocusListener)
|
||||||
stopSelf()
|
stopSelf()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue