mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #4800 from Bnyro/master
fix: crash when the app was closed for a while
This commit is contained in:
commit
5e30895d1a
@ -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