mirror of https://github.com/M66B/FairEmail.git
Skip empty colors
This commit is contained in:
parent
cd266ca94b
commit
984c1430bf
|
@ -170,7 +170,9 @@ public class HtmlHelper {
|
||||||
|
|
||||||
Integer color = null;
|
Integer color = null;
|
||||||
try {
|
try {
|
||||||
if (c.startsWith("#"))
|
if (TextUtils.isEmpty(c))
|
||||||
|
; // Do nothing
|
||||||
|
else if (c.startsWith("#"))
|
||||||
color = Integer.decode(c) | 0xFF000000;
|
color = Integer.decode(c) | 0xFF000000;
|
||||||
else if (c.startsWith("rgb")) {
|
else if (c.startsWith("rgb")) {
|
||||||
int s = c.indexOf("(");
|
int s = c.indexOf("(");
|
||||||
|
|
Loading…
Reference in New Issue