mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: crash when destroying activity after media session
This commit is contained in:
parent
ef1daa005f
commit
4834650f81
@ -346,7 +346,7 @@ class NowPlayingNotification(
|
||||
* Destroy the [NowPlayingNotification]
|
||||
*/
|
||||
fun destroySelf() {
|
||||
mediaSession.release()
|
||||
if (this::mediaSession.isInitialized) mediaSession.release()
|
||||
|
||||
nManager.cancel(NotificationId.PLAYER_PLAYBACK.id)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user