summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/NotificationManagerService.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-04-03 13:08:52 -0700
committerJeff Sharkey <jsharkey@android.com>2013-04-03 13:08:52 -0700
commit0c1baf9dd65a2a67ac1e56776e9ef71a7cfe0f09 (patch)
treeb69ded3209009a3082a36d2165005700b561dab4 /services/java/com/android/server/NotificationManagerService.java
parent75e181ddfec2166026a0ce553eca2a339e21b968 (diff)
Nuke heavy parts of notification before archiving.
Bug: 8537938 Change-Id: I2e4eccc3bd6d57fe5cef340d9e67986d78d3be95
Diffstat (limited to 'services/java/com/android/server/NotificationManagerService.java')
-rw-r--r--services/java/com/android/server/NotificationManagerService.java8
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();
}