Suppress alt text for inline images

pull/185/head
M66B 4 years ago
parent bbc1d41b07
commit 9eeadc54c3

@ -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 {

Loading…
Cancel
Save