mirror of https://github.com/M66B/FairEmail.git
Color workarounds
This commit is contained in:
parent
8932cdcc86
commit
ec2ffcb3d9
|
@ -181,6 +181,7 @@ public class HtmlHelper {
|
|||
case "color":
|
||||
String c = value
|
||||
.replace("none", "")
|
||||
.replace("unset", "")
|
||||
.replace("inherit", "")
|
||||
.replace("initial", "")
|
||||
.replace("windowtext", "")
|
||||
|
@ -211,7 +212,7 @@ public class HtmlHelper {
|
|||
try {
|
||||
color = Color.parseColor(c);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
color = Color.parseColor("#" + c);
|
||||
color = Integer.decode(c) | 0xFF000000;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e("Color=" + c);
|
||||
|
|
Loading…
Reference in New Issue