Skip to content

Commit

Permalink
Fix notification badge display.
Browse files Browse the repository at this point in the history
This reverts commit 2489ea0.
  • Loading branch information
greyson-signal committed Jan 22, 2019
1 parent 657b520 commit a0c1446
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ private static void sendSingleThreadNotification(@NonNull Context context,
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);
Expand All @@ -336,8 +335,8 @@ private static void sendSingleThreadNotification(@NonNull Context context,
notifications.get(0).getText());
}

if (!bundled) {
builder.setGroupSummary(true);
if (bundled) {
builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY);
}

Notification notification = builder.build();
Expand Down

0 comments on commit a0c1446

Please sign in to comment.