Fix notification badge display.

Fixes #7580
fork-5.53.8
Greyson Parrelli 2018-12-03 15:32:07 -08:00
rodzic f0bfd7224f
commit caf93b9203
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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());