more sizing fixes

This commit is contained in:
Kai 2024-09-12 10:34:46 -05:00
commit a9cf8dd71a
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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()
}
}

View file

@ -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)