From f0060fa8bbabbfc8e06a05648d9a598f4388b761 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 21 Oct 2019 16:30:42 +0200 Subject: [PATCH] Wearable improvement --- app/src/main/java/eu/faircode/email/Core.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 1ecfb7eb36..07d36dbf8e 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2726,8 +2726,13 @@ class Core { for (NotificationCompat.Builder builder : notifications) { long id = builder.getExtras().getLong("id", 0); if ((id == 0 && add.size() + remove.size() > 0) || add.contains(id)) { - if (wearable_preview ? id < 0 : update.contains(id)) - builder.setLocalOnly(true); + if (id == 0) { + if (!notify_summary) + builder.setLocalOnly(true); + } else { + if (wearable_preview ? id < 0 : update.contains(id)) + builder.setLocalOnly(true); + } String tag = "unseen." + group + "." + Math.abs(id); Notification notification = builder.build(); @@ -2851,9 +2856,10 @@ class Core { sb.append("
"); } - // Wearable should ignore summary notification + // Wearables builder.setContentText(title); + // Device builder.setStyle(new NotificationCompat.BigTextStyle() .bigText(HtmlHelper.fromHtml(sb.toString())) .setSummaryText(title));