mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #4370 from Bnyro/master
fix: crash when pip not supported
This commit is contained in:
commit
2e5a02cff1
@ -622,10 +622,12 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
|
||||
// disable the auto PiP mode for SDK >= 32
|
||||
exoPlayer.pause()
|
||||
PictureInPictureCompat.setPictureInPictureParams(
|
||||
requireActivity(),
|
||||
pipParams
|
||||
)
|
||||
if (PlayerHelper.pipEnabled) {
|
||||
PictureInPictureCompat.setPictureInPictureParams(
|
||||
requireActivity(),
|
||||
pipParams
|
||||
)
|
||||
}
|
||||
|
||||
handler.removeCallbacksAndMessages(null)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user