diff options
| author | 2013-04-04 06:09:34 +0000 | |
|---|---|---|
| committer | 2013-04-04 06:09:35 +0000 | |
| commit | 9059d3775ab47b08d08ec5df1be149be52007f96 (patch) | |
| tree | 6a7eaaa6bd233463b850a68c07b414a4e6a8e33d | |
| parent | 0fa30372c7768692f9deef3e33655382e8a683fd (diff) | |
| parent | 0c1baf9dd65a2a67ac1e56776e9ef71a7cfe0f09 (diff) | |
Merge "Nuke heavy parts of notification before archiving." into jb-mr2-dev
| -rw-r--r-- | services/java/com/android/server/NotificationManagerService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 5cf1c285f2db..44d730ceb946 100644 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -237,9 +237,15 @@ public class NotificationManagerService extends INotificationManager.Stub ArrayDeque<StatusBarNotification> mBuffer = new ArrayDeque<StatusBarNotification>(BUFFER_SIZE); public Archive() { - } + public void record(StatusBarNotification nr) { + // Nuke heavy parts of notification before storing in archive + nr.notification.tickerView = null; + nr.notification.contentView = null; + nr.notification.bigContentView = null; + nr.notification.largeIcon = null; + if (mBuffer.size() == BUFFER_SIZE) { mBuffer.removeFirst(); } |