mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix height
This commit is contained in:
parent
9f6341ee1e
commit
0c63d836c9
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user