Added option to separate replies with a line

This commit is contained in:
M66B
2020-10-07 18:01:26 +02:00
parent da88b1f7d6
commit a7d57aadf1
7 changed files with 44 additions and 7 deletions

View File

@@ -263,7 +263,7 @@ public class EntityMessage implements Serializable {
return false;
}
Element getReplyHeader(Context context, Document document, boolean extended) {
Element getReplyHeader(Context context, Document document, boolean separate, boolean extended) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean language_detection = prefs.getBoolean("language_detection", false);
String l = (language_detection ? language : null);
@@ -315,7 +315,13 @@ public class EntityMessage implements Serializable {
} else
p.text(DF.format(new Date(received)) + " " + MessageHelper.formatAddresses(from) + ":");
return p;
if (separate) {
Element div = document.createElement("div");
div.appendElement("hr");
div.appendChild(p);
return div;
} else
return p;
}
String getNotificationChannelId() {