From ad801095ad4dfaf6699a64ee74cc2b15070db321 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 3 Mar 2022 18:00:34 +0100 Subject: [PATCH] Debug: strike through transparent text --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index de6f89fc58..27241d9a1e 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -633,6 +633,12 @@ public class HtmlHelper { Integer color = parseColor(value); + if (color != null && color == Color.TRANSPARENT) { + if (BuildConfig.DEBUG) + sb.append("text-decoration:line-through;"); + color = null; + } + if ("color".equals(key)) { Integer bg = null; if (background_color) { @@ -1763,6 +1769,9 @@ public class HtmlHelper { if (TextUtils.isEmpty(value)) return null; + if ("transparent".equals(value)) + return Color.TRANSPARENT; + // https://developer.mozilla.org/en-US/docs/Web/CSS/color_value String c = value .replace("null", "")