mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: crash when pip not supported
This commit is contained in:
parent
f2c2834e3f
commit
c83a8ee1b7
@ -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