prevent going into full screen when entering pip mode

This commit is contained in:
Kai 2024-12-10 11:30:48 -06:00
parent 7c9e9d5f52
commit 620f5a0459
No known key found for this signature in database

View File

@ -2582,7 +2582,6 @@ class VideoDetailView : ConstraintLayout {
_overlayContainer.removeAllViews(); _overlayContainer.removeAllViews();
_overlay_quality_selector?.hide(); _overlay_quality_selector?.hide();
_player.setFullScreen(true)
_player.fillHeight(false) _player.fillHeight(false)
_layoutPlayerContainer.setPadding(0, 0, 0, 0); _layoutPlayerContainer.setPadding(0, 0, 0, 0);
} }
@ -2797,7 +2796,7 @@ class VideoDetailView : ConstraintLayout {
super.onConfigurationChanged(newConfig) super.onConfigurationChanged(newConfig)
if (fragment.state == VideoDetailFragment.State.MINIMIZED) { if (fragment.state == VideoDetailFragment.State.MINIMIZED) {
_player.fillHeight(true) _player.fillHeight(true)
} else if (!fragment.isFullscreen) { } else if (!fragment.isFullscreen && !fragment.isInPictureInPicture) {
_player.fitHeight() _player.fitHeight()
} }
} }