mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
more sizing fixes
This commit is contained in:
+2
-2
@@ -2648,8 +2648,8 @@ class VideoDetailView : ConstraintLayout {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
if (fragment.state == VideoDetailFragment.State.MINIMIZED) {
|
||||
setVideoMinimize(_minimizeProgress)
|
||||
}
|
||||
if (!fragment.isFullscreen) {
|
||||
_player.fillHeight(true)
|
||||
} else if (!fragment.isFullscreen) {
|
||||
_player.fitHeight()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -753,7 +753,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
|
||||
val determinedHeight = (aspectRatio * windowWidth)
|
||||
|
||||
_lastSourceFit = determinedHeight
|
||||
_lastSourceFit = _lastSourceFit!!.coerceAtLeast(250f)
|
||||
_lastSourceFit = _lastSourceFit!!.coerceAtLeast(220f)
|
||||
_lastSourceFit = _lastSourceFit!!.coerceAtMost(maxHeight)
|
||||
|
||||
_desiredResizeModePortrait = if (_lastSourceFit != determinedHeight)
|
||||
|
||||
Reference in New Issue
Block a user