From 27a7c4e86b35aa28b59c0e71670d6cbc3579d6fe Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Jun 2021 10:02:56 +0200 Subject: [PATCH] Small notification improvement --- app/src/main/java/eu/faircode/email/Core.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 3e90a3d93d..4c8e8e1a77 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -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());