mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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) {
|
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
||||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||||
if (isInPictureInPictureMode) {
|
if (isInPictureInPictureMode) {
|
||||||
|
// set portrait mode
|
||||||
|
unsetFullscreen()
|
||||||
|
|
||||||
// hide and disable exoPlayer controls
|
// hide and disable exoPlayer controls
|
||||||
exoPlayerView.hideController()
|
exoPlayerView.hideController()
|
||||||
exoPlayerView.useController = false
|
exoPlayerView.useController = false
|
||||||
|
|
||||||
// set portrait mode
|
|
||||||
unsetFullscreen()
|
|
||||||
|
|
||||||
with(binding.playerMotionLayout) {
|
with(binding.playerMotionLayout) {
|
||||||
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
|
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
|
||||||
enableTransition(R.id.yt_transition, false)
|
enableTransition(R.id.yt_transition, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user