1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 06:31:17 +00:00

Small notification improvement

This commit is contained in:
M66B 2021-06-14 10:02:56 +02:00
parent 4dd6e1e96c
commit 27a7c4e86b

View file

@ -4583,11 +4583,10 @@ class Core {
StringBuilder sb = new StringBuilder();
if (!TextUtils.isEmpty(message.subject))
sb.append(message.subject);
if (wearable_preview) {
if (sb.length() != 0)
if (wearable_preview && !TextUtils.isEmpty(preview)) {
if (sb.length() > 0)
sb.append(" - ");
if (!TextUtils.isEmpty(preview))
sb.append(preview);
sb.append(preview);
}
if (sb.length() > 0)
mbuilder.setContentText(sb.toString());