mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix: dismiss fullscreen dialog when activity gets destroyed
This commit is contained in:
parent
29519ad37e
commit
451cadf33d
@ -819,6 +819,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
}
|
||||
|
||||
runCatching {
|
||||
if (fullscreenDialog.isShowing) fullscreenDialog.dismiss()
|
||||
}
|
||||
|
||||
runCatching {
|
||||
// unregister the receiver for player actions
|
||||
context?.unregisterReceiver(playerActionReceiver)
|
||||
|
Loading…
x
Reference in New Issue
Block a user