From 10edc5a6cd6de77dd7573dde8e61be64f1d94af3 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 12 Mar 2019 18:44:32 +0000 Subject: [PATCH] Fixed displaying inline images --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 +++-- 1 file changed, 3 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 db486cd04e..69b69f1bcc 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -207,14 +207,15 @@ public class HtmlHelper { } if (linked) - div.appendChild(img); + div.appendChild(img.clone()); else { Element a = document.createElement("a"); a.attr("href", uri.toString()); a.appendChild(img.clone()); div.appendChild(a); } - } + } else + div.appendChild(img.clone()); if (!TextUtils.isEmpty(alt)) { div.appendElement("br");