mirror of https://github.com/M66B/FairEmail.git
Strip size, color and font when viewing only
This commit is contained in:
parent
9bea64fe7a
commit
23e88797ab
|
@ -316,9 +316,9 @@ public class HtmlHelper {
|
||||||
|
|
||||||
private static Document sanitize(Context context, Document parsed, boolean view, boolean show_images) {
|
private static Document sanitize(Context context, Document parsed, boolean view, boolean show_images) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean text_color = prefs.getBoolean("text_color", true);
|
boolean text_color = (!view || prefs.getBoolean("text_color", true));
|
||||||
boolean text_size = prefs.getBoolean("text_size", true);
|
boolean text_size = (!view || prefs.getBoolean("text_size", true));
|
||||||
boolean text_font = prefs.getBoolean("text_font", true);
|
boolean text_font = (!view || prefs.getBoolean("text_font", true));
|
||||||
boolean text_align = prefs.getBoolean("text_align", true);
|
boolean text_align = prefs.getBoolean("text_align", true);
|
||||||
boolean display_hidden = prefs.getBoolean("display_hidden", false);
|
boolean display_hidden = prefs.getBoolean("display_hidden", false);
|
||||||
boolean disable_tracking = prefs.getBoolean("disable_tracking", true);
|
boolean disable_tracking = prefs.getBoolean("disable_tracking", true);
|
||||||
|
|
Loading…
Reference in New Issue