Skip to content

Commit 8930458

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "Retain expanded state across violent updates." into jb-dev
2 parents 6c2ecbd + c9433ec commit 8930458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,13 @@ public void updateNotification(IBinder key, StatusBarNotification notification)
907907
if (DEBUG) Slog.d(TAG, "contents was " + (contentsUnchanged ? "unchanged" : "changed"));
908908
if (DEBUG) Slog.d(TAG, "order was " + (orderUnchanged ? "unchanged" : "changed"));
909909
if (DEBUG) Slog.d(TAG, "notification is " + (isTopAnyway ? "top" : "not top"));
910+
final boolean wasExpanded = oldEntry.userExpanded();
910911
removeNotificationViews(key);
911912
addNotificationViews(key, notification);
913+
if (wasExpanded) {
914+
final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
915+
expandView(newEntry, true);
916+
}
912917
}
913918

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

0 commit comments

Comments
 (0)