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()
|
||||||
|
if (PlayerHelper.pipEnabled) {
|
||||||
PictureInPictureCompat.setPictureInPictureParams(
|
PictureInPictureCompat.setPictureInPictureParams(
|
||||||
requireActivity(),
|
requireActivity(),
|
||||||
pipParams
|
pipParams
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
handler.removeCallbacksAndMessages(null)
|
handler.removeCallbacksAndMessages(null)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user