From 5d70e28f5f5f168525e55f474741c52a987e127d Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 5 May 2020 18:49:55 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 77aa98db62..b3fe82ace7 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -828,7 +828,7 @@ public class HtmlHelper { for (Element img : document.select("img")) { String alt = img.attr("alt"); String src = img.attr("src"); - String tracking = img.attr("tracking"); + String tracking = img.attr("x-tracking"); if (alt.length() > MAX_ALT) alt = alt.substring(0, MAX_ALT) + "…"; @@ -1366,7 +1366,7 @@ public class HtmlHelper { // Images for (Element img : document.select("img")) { - img.removeAttr("tracking"); + img.removeAttr("x-tracking"); String src = img.attr("src"); if (!TextUtils.isEmpty(src) && isTrackingPixel(img)) { Uri uri = Uri.parse(src); @@ -1377,7 +1377,7 @@ public class HtmlHelper { img.attr("height", "24"); img.attr("width", "24"); img.attr("style", "display:block !important; width:24px !important; height:24px !important;"); - img.attr("tracking", src); + img.attr("x-tracking", src); } } }