mirror of https://github.com/M66B/FairEmail.git
Color workaroud fix
This commit is contained in:
parent
54641c417e
commit
89ee4e238c
|
@ -367,10 +367,10 @@ public class HtmlHelper {
|
||||||
try {
|
try {
|
||||||
color = Color.parseColor(c);
|
color = Color.parseColor(c);
|
||||||
} catch (IllegalArgumentException ex) {
|
} catch (IllegalArgumentException ex) {
|
||||||
color = Integer.decode(c) | 0xFF000000;
|
color = Integer.decode("#" + c) | 0xFF000000;
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e("Color=" + c);
|
Log.e("Color=" + c + ": " + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (color != null && !(dark && color == Color.BLACK)) {
|
if (color != null && !(dark && color == Color.BLACK)) {
|
||||||
|
|
Loading…
Reference in New Issue