mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-01 01:52:15 +00:00
Revert "Fix notification badge display."
This reverts commit caf93b9203ff14332744d0208f550280f7fcc701.
This commit is contained in:
parent
053f071f41
commit
2489ea0d5b
@ -307,6 +307,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);
|
||||
@ -331,8 +332,8 @@ public class MessageNotifier {
|
||||
notifications.get(0).getText());
|
||||
}
|
||||
|
||||
if (bundled) {
|
||||
builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY);
|
||||
if (!bundled) {
|
||||
builder.setGroupSummary(true);
|
||||
}
|
||||
|
||||
NotificationManagerCompat.from(context).notify(notificationId, builder.build());
|
||||
|
Loading…
x
Reference in New Issue
Block a user