diff options
| -rw-r--r-- | services/java/com/android/server/NotificationManagerService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 1e394d6f9e4c..9e036d1124ec 100644 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -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); } /** |