From b4fe215a69787735c4974bd06d228974e682ab34 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Thu, 20 Jun 2019 13:58:16 +0530 Subject: [PATCH] fix: badge seems to cut off on devices with 19.5:9 ratio (#395) --- .../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