mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-07 08:39:30 +00:00
more sizing fixes
This commit is contained in:
parent
3299261db3
commit
a9cf8dd71a
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue