aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-10 14:12:11 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-10 14:12:11 +0200
commit2eb2bac3e6e07a628ffeab22d7cf2f9ac6d39162 (patch)
tree24a1089bdd22f2c0e6c5ab3464011d78e9f790e6 /src/eu/siacs/conversations/utils
parent7f5d65c7831bc858e760c3c85a65f74b4da86fdc (diff)
cleanup
Diffstat (limited to 'src/eu/siacs/conversations/utils')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index bf7691cf..50715ee9 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -106,8 +106,7 @@ public class UIHelper {
private static int getNameColor(String name) {
int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
0xFFe92727 };
- int color = holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length];
- return color;
+ return holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length];
}
private static void drawTile(Canvas canvas, String letter, int tileColor, int textColor, int left, int top, int right, int bottom) {