aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-31 11:11:17 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-31 11:11:17 +0200
commitaed5b01434ff6cf180433efc0fc4a817f1234740 (patch)
treedc5965379d9048e23e8557c14f31a563e1b48225 /src/eu
parent6bb7764d723f6fcaba7ec5e85d8404e28ca52fda (diff)
changed all them beautifull colors
Diffstat (limited to 'src/eu')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index 96d628fa..2558ca71 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);