summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-04-04 06:09:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-04 06:09:35 +0000
commit9059d3775ab47b08d08ec5df1be149be52007f96 (patch)
tree6a7eaaa6bd233463b850a68c07b414a4e6a8e33d
parent0fa30372c7768692f9deef3e33655382e8a683fd (diff)
parent0c1baf9dd65a2a67ac1e56776e9ef71a7cfe0f09 (diff)
downloadframeworks_base-9059d3775ab47b08d08ec5df1be149be52007f96.zip
frameworks_base-9059d3775ab47b08d08ec5df1be149be52007f96.tar.gz
frameworks_base-9059d3775ab47b08d08ec5df1be149be52007f96.tar.bz2
Merge "Nuke heavy parts of notification before archiving." into jb-mr2-dev
-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 5cf1c28..44d730c 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();
}