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

Commit a9ee110c authored by Chris Wren's avatar Chris Wren Committed by Android Git Automerger
Browse files

am 89304586: Merge "Retain expanded state across violent updates." into jb-dev

* commit '89304586':
  Retain expanded state across violent updates.
parents d5aa2000 89304586
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -907,8 +907,13 @@ public abstract class BaseStatusBar extends SystemUI implements
            if (DEBUG) Slog.d(TAG, "contents was " + (contentsUnchanged ? "unchanged" : "changed"));
            if (DEBUG) Slog.d(TAG, "order was " + (orderUnchanged ? "unchanged" : "changed"));
            if (DEBUG) Slog.d(TAG, "notification is " + (isTopAnyway ? "top" : "not top"));
            final boolean wasExpanded = oldEntry.userExpanded();
            removeNotificationViews(key);
            addNotificationViews(key, notification);
            if (wasExpanded) {
                final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
                expandView(newEntry, true);
            }
        }

        // Update the veto button accordingly (and as a result, whether this row is