fix height

This commit is contained in:
Bnyro 2022-07-03 14:14:39 +02:00
parent 9f6341ee1e
commit 0c63d836c9

View File

@ -684,7 +684,7 @@ class PlayerFragment : Fragment() {
// Redraw myView // Redraw myView
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply { (binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply {
matchConstraintPercentHeight = ( matchConstraintPercentHeight = (
videoSize.height / videoSize.width * currentWidth videoSize.height / videoSize.width
).toFloat() ).toFloat()
} }
binding.mainContainer.requestLayout() binding.mainContainer.requestLayout()