diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-23 21:13:58 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-23 21:13:58 +0200 |
commit | 43e276e3250ced19d7bd2d45d99ecbf6debce6a3 (patch) | |
tree | 5a4de096aeeca72b8f90e8da777c1c3cd5b277e7 /src/eu/siacs | |
parent | 996bee88364fb7fcbee7b9090d2bc6a91931205a (diff) |
possible better distribution of contact picture colors
Diffstat (limited to 'src/eu/siacs')
-rw-r--r-- | src/eu/siacs/conversations/utils/UIHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 183d94f3..6125e315 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -114,7 +114,7 @@ public class UIHelper { private static int getNameColor(String name) { int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713, 0xFFe92727 }; - return holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length]; + return holoColors[(int) ((name.hashCode() & 0xffffffffl) % holoColors.length)]; } private static void drawTile(Canvas canvas, String letter, int tileColor, int textColor, int left, int top, int right, int bottom) { @@ -394,7 +394,7 @@ public class UIHelper { targetUuid=currentCon.getUuid(); } if (unread.size() != 0) { - mBuilder.setSmallIcon(R.drawable.notification); + mBuilder.setSmallIcon(R.drawable.ic_notification); if (notify) { if (vibrate) { int dat = 70; |