Skip to content

Commit

Permalink
Merge pull request #4530 from hieupham007/timob-14720-3_1_X
Browse files Browse the repository at this point in the history
Timob 14720 3 1 x
  • Loading branch information
pingwang2011 committed Aug 2, 2013
2 parents 46674c1 + db8d50d commit f464d54
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public static int parseColor(String value) {
} else {
// Try the parser, will throw illegalArgument if it can't parse it.
try {
color = Color.parseColor(lowval);
// In 4.3, Google introduced some new string color constants and they forgot to
// add the alpha bits to them! This is a temporary workaround
// until they fix it. I've created a Google ticket for this:
// https://code.google.com/p/android/issues/detail?id=58352&thanks=58352
color = Color.parseColor(lowval) | 0xFF000000;
} catch (IllegalArgumentException e) {
if (colorTable == null) {
buildColorTable();
Expand Down

0 comments on commit f464d54

Please sign in to comment.