mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-13 00:10:05 -05:00
player: aspect ratio: fix percent calculation
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user