From e5f066270fd330b7ef380ce1412094f6ed8e0e0d Mon Sep 17 00:00:00 2001 From: adityastic Date: Thu, 20 Jun 2019 13:39:33 +0530 Subject: [PATCH] fix: badge seems to cut off on devices with 19.5:9 ratio --- .../main/java/org/fossasia/badgemagic/ui/custom/PreviewBadge.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/fossasia/badgemagic/ui/custom/PreviewBadge.kt b/app/src/main/java/org/fossasia/badgemagic/ui/custom/PreviewBadge.kt index d2533b6f8..bc0870131 100644 --- a/app/src/main/java/org/fossasia/badgemagic/ui/custom/PreviewBadge.kt +++ b/app/src/main/java/org/fossasia/badgemagic/ui/custom/PreviewBadge.kt @@ -93,7 +93,7 @@ class PreviewBadge : View { super.onMeasure(widthMeasureSpec, heightMeasureSpec) val ratioHeight = 1 - val ratioWidth = 3.45 + val ratioWidth = 3 val originalWidth = MeasureSpec.getSize(widthMeasureSpec) val calculatedHeight = originalWidth * ratioHeight / ratioWidth