Added setting for send / auto link

This commit is contained in:
M66B
2021-03-24 07:30:50 +01:00
parent d2cd2faf29
commit cce1875c0f
4 changed files with 27 additions and 3 deletions

View File

@@ -617,13 +617,15 @@ public class MessageHelper {
boolean format_flowed = prefs.getBoolean("format_flowed", false);
boolean monospaced = prefs.getBoolean("monospaced", false);
String compose_font = prefs.getString("compose_font", monospaced ? "monospace" : "sans-serif");
boolean auto_link = prefs.getBoolean("auto_link", false);
// Build html body
Document document = JsoupEx.parse(message.getFile(context));
// When sending message
if (identity != null && send) {
HtmlHelper.autoLink(document);
if (auto_link)
HtmlHelper.autoLink(document);
for (Element child : document.body().children())
if (!TextUtils.isEmpty(child.text()) &&