Added auto list option

This commit is contained in:
M66B
2020-06-18 07:48:04 +02:00
parent a57ed6d927
commit 6513454f68
4 changed files with 31 additions and 6 deletions

View File

@@ -538,12 +538,17 @@ public class MessageHelper {
return;
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean autolist = prefs.getBoolean("autolist", true);
boolean format_flowed = prefs.getBoolean("format_flowed", false);
// Build html body
Document document = JsoupEx.parse(message.getFile(context));
// When sending message
if (identity != null) {
HtmlHelper.convertLists(document);
if (autolist)
HtmlHelper.convertLists(document);
if (send) {
document.select("div[fairemail=signature]").removeAttr("fairemail");
@@ -605,9 +610,6 @@ public class MessageHelper {
}
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean format_flowed = prefs.getBoolean("format_flowed", false);
// multipart/mixed
// multipart/related
// multipart/alternative