From 4940c0b35cab1f89ab4e195b495571fc9efd3b8f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 11 Aug 2022 11:51:23 +0200 Subject: [PATCH] fix PiP buttons --- .../java/com/github/libretube/fragments/PlayerFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index d721a21c8..c8cfd6076 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -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)