mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 14:50:49 +00:00
Merge branch 'fix-fullscreen-from-pip' into 'master'
prevent going into full screen when entering pip mode See merge request videostreaming/grayjay!55
This commit is contained in:
commit
3b457f87c4
1 changed files with 1 additions and 2 deletions
|
@ -2587,7 +2587,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);
|
||||||
}
|
}
|
||||||
|
@ -2802,7 +2801,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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue