player: aspect ratio: fix percent calculation

This commit is contained in:
Yuriy Liskov
2025-11-24 11:56:16 +02:00
parent cf65920f25
commit 67f06d32f8
@@ -191,8 +191,8 @@ public final class AspectRatioFrameLayout extends FrameLayout {
// MODIFIED
if (zoomPercents > 0 && zoomPercents != 100) {
width = (width / 100) * zoomPercents;
height = (height / 100) * zoomPercents;
width = width * zoomPercents / 100;
height = height * zoomPercents / 100;
super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));