From 68b264646fb590691a1da247295a8414213891b6 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Sep 2020 09:04:37 +0200 Subject: [PATCH] Check for visible images and links with content --- 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 c0027555ad..19e8001d43 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1312,8 +1312,8 @@ public class HtmlHelper { Element element = (Element) node; if (!element.isBlock() && (element.hasText() || - element.selectFirst("a") != null || - element.selectFirst("img") != null)) + element.selectFirst("a[href~=.+]") != null || + element.selectFirst("img[src~=.+]") != null)) return true; } return false;