cleanup
This commit is contained in:
parent
7f5d65c783
commit
2eb2bac3e6
|
@ -106,8 +106,7 @@ public class UIHelper {
|
||||||
private static int getNameColor(String name) {
|
private static int getNameColor(String name) {
|
||||||
int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
|
int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
|
||||||
0xFFe92727 };
|
0xFFe92727 };
|
||||||
int color = holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length];
|
return holoColors[Math.abs(name.toLowerCase(Locale.getDefault()).hashCode()) % holoColors.length];
|
||||||
return color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void drawTile(Canvas canvas, String letter, int tileColor, int textColor, int left, int top, int right, int bottom) {
|
private static void drawTile(Canvas canvas, String letter, int tileColor, int textColor, int left, int top, int right, int bottom) {
|
||||||
|
|
Loading…
Reference in a new issue