From 89ee4e238c897f66dc33b7191c2c2e9af29af360 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 Jan 2020 09:03:04 +0100 Subject: [PATCH] Color workaroud fix --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index be85d8dec7..8f9764f918 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -367,10 +367,10 @@ public class HtmlHelper { try { color = Color.parseColor(c); } catch (IllegalArgumentException ex) { - color = Integer.decode(c) | 0xFF000000; + color = Integer.decode("#" + c) | 0xFF000000; } } catch (Throwable ex) { - Log.e("Color=" + c); + Log.e("Color=" + c + ": " + ex); } if (color != null && !(dark && color == Color.BLACK)) {