fix PiP buttons

This commit is contained in:
Bnyro 2022-08-11 11:51:23 +02:00
parent 252e42f0c1
commit 4940c0b35c

View File

@ -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)