From be7a7f1af6010959a19ff8f42064ab2f2649ca34 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Fri, 20 Apr 2018 07:00:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Identicon=20rendering=20improvem?= =?UTF-8?q?ents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/ch/dissem/apps/abit/Identicon.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ch/dissem/apps/abit/Identicon.kt b/app/src/main/java/ch/dissem/apps/abit/Identicon.kt index 3dd417f..60a0219 100644 --- a/app/src/main/java/ch/dissem/apps/abit/Identicon.kt +++ b/app/src/main/java/ch/dissem/apps/abit/Identicon.kt @@ -95,7 +95,7 @@ class Identicon(input: BitmessageAddress) : Drawable() { } if (isChan) { textPaint.textSize = 2 * cellHeight - canvas.drawText("[isChan]", offsetX + width / 2, offsetY + 6.7f * cellHeight, textPaint) + canvas.drawText("[ chan ]", offsetX + width / 2, offsetY + 6.7f * cellHeight, textPaint) } } @@ -156,7 +156,7 @@ class MultiIdenticon(input: List, @ColorInt private val backg } 4 -> { canvas.drawCircle(width / 2, height / 2, width / 2, paint) - val scale = 2f / (1f + sqrt(2f)) + val scale = 1f / (1f + sqrt(2f)) val borderScale = 0.5f - scale val w = width * scale val h = height * scale