fix: dismiss fullscreen dialog when activity gets destroyed

This commit is contained in:
Bnyro 2024-07-11 17:49:22 +02:00
parent 29519ad37e
commit 451cadf33d

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)