mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40: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
|
// disable the auto PiP mode for SDK >= 32
|
||||||
exoPlayer.pause()
|
exoPlayer.pause()
|
||||||
PictureInPictureCompat.setPictureInPictureParams(
|
if (PlayerHelper.pipEnabled) {
|
||||||
requireActivity(),
|
PictureInPictureCompat.setPictureInPictureParams(
|
||||||
pipParams
|
requireActivity(),
|
||||||
)
|
pipParams
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
handler.removeCallbacksAndMessages(null)
|
handler.removeCallbacksAndMessages(null)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user