From cf098673b485c1dfca21accd814c35d281ac17ad Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 4 Feb 2020 11:33:08 +0100 Subject: [PATCH] A link is visible content --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 4 +++- 1 file changed, 3 insertions(+), 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 d8652c41e6..327d138ad2 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -743,7 +743,9 @@ public class HtmlHelper { else if (node instanceof Element) { Element element = (Element) node; if (!element.isBlock() && - (element.hasText() || element.selectFirst("img") != null)) + (element.hasText() || + element.selectFirst("a") != null || + element.selectFirst("img") != null)) return true; } return false;