mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Suppress alt text for inline images
This commit is contained in:
@@ -326,6 +326,7 @@ public class HtmlHelper {
|
||||
boolean display_hidden = prefs.getBoolean("display_hidden", false);
|
||||
boolean disable_tracking = prefs.getBoolean("disable_tracking", true);
|
||||
boolean parse_classes = prefs.getBoolean("parse_classes", false);
|
||||
boolean inline_images = prefs.getBoolean("inline_images", false);
|
||||
|
||||
int textColorPrimary = Helper.resolveColor(context, android.R.attr.textColorPrimary);
|
||||
|
||||
@@ -815,7 +816,7 @@ public class HtmlHelper {
|
||||
if (alt.length() > MAX_ALT)
|
||||
alt = alt.substring(0, MAX_ALT) + "…";
|
||||
|
||||
if (!show_images && !TextUtils.isEmpty(alt))
|
||||
if (!show_images && !(inline_images && src.startsWith("cid:")) && !TextUtils.isEmpty(alt))
|
||||
if (TextUtils.isEmpty(tracking))
|
||||
img.appendText("[" + alt + "]");
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user