From a0c1446e9ff283b6e77cceb79ee16ba4e3c089d9 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 21 Jan 2019 16:43:59 -0800 Subject: [PATCH] Fix notification badge display. This reverts commit 2489ea0d5bd2313074942cfc9ec14b4bbeaad836. --- .../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 30ec245530..ee793b419c 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -311,7 +311,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); @@ -336,8 +335,8 @@ public class MessageNotifier { notifications.get(0).getText()); } - if (!bundled) { - builder.setGroupSummary(true); + if (bundled) { + builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY); } Notification notification = builder.build();