Release PlaybackManager when quitting MusicService

This commit is contained in:
Prathamesh More 2022-05-13 15:24:52 +05:30
parent 165d180fe6
commit 1033711357

View file

@ -893,7 +893,7 @@ class MusicService : MediaBrowserServiceCompat(),
pause()
stopForeground(true)
notificationManager?.cancel(PlayingNotification.NOTIFICATION_ID)
playbackManager.closeAudioEffectSession()
playbackManager.release()
audioManager?.abandonAudioFocus(audioFocusListener)
stopSelf()
}