mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: crash when the app was closed for a while
This commit is contained in:
parent
d1979c21e0
commit
0b40039e96
@ -639,8 +639,9 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
|
||||
viewModel.player = null
|
||||
|
||||
if (this::exoPlayer.isInitialized) exoPlayer.pause()
|
||||
|
||||
// disable the auto PiP mode for SDK >= 32
|
||||
exoPlayer.pause()
|
||||
if (PlayerHelper.pipEnabled) {
|
||||
PictureInPictureCompat.setPictureInPictureParams(
|
||||
requireActivity(),
|
||||
|
Loading…
Reference in New Issue
Block a user