mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-02 07:34:25 +02:00
prevent going into full screen when entering pip mode
This commit is contained in:
parent
7c9e9d5f52
commit
620f5a0459
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user