Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07e8fc89 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

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

* commit '9059d377':
  Nuke heavy parts of notification before archiving.
parents 6690203c 9059d377
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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();
            }