From 45ddb7e1ad05a599a89cf84185a6087279483ee8 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 7 Feb 2019 16:17:17 -0800 Subject: [PATCH] Revert "Fix notification badge display." This reverts commit a0c1446e9ff283b6e77cceb79ee16ba4e3c089d9. --- .../securesms/notifications/MessageNotifier.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index ee793b419c..30ec245530 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -311,6 +311,7 @@ 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); @@ -335,8 +336,8 @@ public class MessageNotifier { notifications.get(0).getText()); } - if (bundled) { - builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY); + if (!bundled) { + builder.setGroupSummary(true); } Notification notification = builder.build();