mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Added setting for send / auto link
This commit is contained in:
@@ -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()) &&
|
||||
|
||||
Reference in New Issue
Block a user