mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Simplification
This commit is contained in:
@@ -194,18 +194,6 @@ public class HtmlHelper {
|
||||
a.appendText(context.getString(R.string.title_hint_tracking_image,
|
||||
img.attr("width"), img.attr("height")));
|
||||
span.appendChild(a);
|
||||
} else if (paranoid) {
|
||||
// Image link
|
||||
for (Element parent : img.parents())
|
||||
if ("a".equals(parent.tagName()) &&
|
||||
!TextUtils.isEmpty(parent.attr("href"))) {
|
||||
span.appendElement("br");
|
||||
Element a = document.createElement("a");
|
||||
a.attr("href", src);
|
||||
a.appendText(context.getString(R.string.title_hint_image_link));
|
||||
span.appendChild(a);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Replace img by span containing img
|
||||
|
||||
Reference in New Issue
Block a user