From caf93b9203ff14332744d0208f550280f7fcc701 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 3 Dec 2018 15:32:07 -0800 Subject: [PATCH] Fix notification badge display. Fixes #7580 --- .../securesms/notifications/MessageNotifier.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index 78aa430380..7be4b3ce44 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -307,7 +307,6 @@ public class MessageNotifier { builder.setGroup(NOTIFICATION_GROUP); builder.setDeleteIntent(notificationState.getDeleteIntent(context)); builder.setOnlyAlertOnce(!signal); - builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY); long timestamp = notifications.get(0).getTimestamp(); if (timestamp != 0) builder.setWhen(timestamp); @@ -332,8 +331,8 @@ public class MessageNotifier { notifications.get(0).getText()); } - if (!bundled) { - builder.setGroupSummary(true); + if (bundled) { + builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY); } NotificationManagerCompat.from(context).notify(notificationId, builder.build());