mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix PiP buttons
This commit is contained in:
parent
252e42f0c1
commit
4940c0b35c
@ -1544,13 +1544,13 @@ class PlayerFragment : BaseFragment() {
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||
if (isInPictureInPictureMode) {
|
||||
// set portrait mode
|
||||
unsetFullscreen()
|
||||
|
||||
// hide and disable exoPlayer controls
|
||||
exoPlayerView.hideController()
|
||||
exoPlayerView.useController = false
|
||||
|
||||
// set portrait mode
|
||||
unsetFullscreen()
|
||||
|
||||
with(binding.playerMotionLayout) {
|
||||
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
|
||||
enableTransition(R.id.yt_transition, false)
|
||||
|
Loading…
Reference in New Issue
Block a user