Small notification improvement

pull/199/head
M66B 4 years ago
parent 4dd6e1e96c
commit 27a7c4e86b

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

Loading…
Cancel
Save