Skip to content

Commit ba9c717

Browse files
committed
Fix clearing all notifications when dismissing only one
Previously, swiping away the latest notifications (when 4+ are present) would clear all notifications. Fix allows for individual dismissal only of those swiped.
1 parent d8125db commit ba9c717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/NotificationSummaryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private static Cursor internalUpdateSummaryNotificationAfterChildRemoved(Context
6565
// If all individual notifications consumed
6666
// - Remove summary notification from the shade.
6767
// - Mark summary notification as consumed.
68-
if (notificationsInGroup == 0) {
68+
if (notificationsInGroup == 0 && !group.equals(OneSignalNotificationManager.getGrouplessSummaryKey())) {
6969
cursor.close();
7070

7171
Integer androidNotifId = getSummaryNotificationId(db, group);

0 commit comments

Comments
 (0)