From 76ade0b1a3d1b079546a79cf0da0f78fd61a7fdf Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 15 Feb 2020 19:22:28 +0100 Subject: [PATCH] Fixed colors --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 41117253bc..81b758b85e 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -392,7 +392,7 @@ public class HtmlHelper { Integer color = parseColor(value, dark); if (color != null) { // fromHtml does not support transparency - String c = String.format("#%08x", color | 0xFF000000); + String c = String.format("#%06x", color); sb.append("color:").append(c).append(";"); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) element.attr("color", c);