From aed5b01434ff6cf180433efc0fc4a817f1234740 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 31 Mar 2014 11:11:17 +0200 Subject: [PATCH] changed all them beautifull colors --- src/eu/siacs/conversations/utils/UIHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 96d628fa5..2558ca718 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -70,7 +70,7 @@ public class UIHelper { int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713, 0xFFe92727 }; - int color = holoColors[Math.abs(name.hashCode()) % holoColors.length]; + int color = holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length]; Bitmap bitmap = Bitmap .createBitmap(size, size, Bitmap.Config.ARGB_8888);