mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Skip empty colors
This commit is contained in:
@@ -170,7 +170,9 @@ public class HtmlHelper {
|
||||
|
||||
Integer color = null;
|
||||
try {
|
||||
if (c.startsWith("#"))
|
||||
if (TextUtils.isEmpty(c))
|
||||
; // Do nothing
|
||||
else if (c.startsWith("#"))
|
||||
color = Integer.decode(c) | 0xFF000000;
|
||||
else if (c.startsWith("rgb")) {
|
||||
int s = c.indexOf("(");
|
||||
|
||||
Reference in New Issue
Block a user