am 07e8fc89: am 9059d377: Merge "Nuke heavy parts of notification before archiving." into jb-mr2-dev

* commit '07e8fc89b0acec9045db9f6ae3fd7730657ae850':
  Nuke heavy parts of notification before archiving.
This commit is contained in:
Jeff Sharkey
2013-04-03 23:17:34 -07:00
committed by Android Git Automerger

View File

@@ -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();
}