From 67f06d32f81162b5d1f555fa714355362ff8c5fe Mon Sep 17 00:00:00 2001 From: Yuriy Liskov Date: Mon, 24 Nov 2025 11:56:16 +0200 Subject: [PATCH] player: aspect ratio: fix percent calculation --- .../google/android/exoplayer2/ui/AspectRatioFrameLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exoplayer-amzn-2.10.6/library/ui/src/main/java/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.java b/exoplayer-amzn-2.10.6/library/ui/src/main/java/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.java index ada3c86a1..0650cb196 100644 --- a/exoplayer-amzn-2.10.6/library/ui/src/main/java/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.java +++ b/exoplayer-amzn-2.10.6/library/ui/src/main/java/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.java @@ -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));