Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d280ee9 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Accumulate updates to notifications before archiving." into jb-mr2-dev

parents 9f6421a3 23d7c700
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1255,9 +1255,6 @@ public class NotificationManagerService extends INotificationManager.Stub
                    sendAccessibilityEvent(notification, pkg);
                }

                // finally, keep some of this information around for later use
                mArchive.record(n);

                notifyPostedLocked(r);
            } else {
                Slog.e(TAG, "Ignoring notification with icon==0: " + notification);
@@ -1472,6 +1469,9 @@ public class NotificationManagerService extends INotificationManager.Stub
        if (mLedNotification == r) {
            mLedNotification = null;
        }

        // Save it for users of getHistoricalNotifications()
        mArchive.record(r.sbn);
    }

    /**