Merge pull request #6212 from Bnyro/master

fix: dismiss fullscreen dialog when activity gets destroyed
This commit is contained in:
Bnyro 2024-07-11 17:49:41 +02:00 committed by GitHub
commit b8b9ff77e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -819,6 +819,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}
}
runCatching {
if (fullscreenDialog.isShowing) fullscreenDialog.dismiss()
}
runCatching {
// unregister the receiver for player actions
context?.unregisterReceiver(playerActionReceiver)