From c9433ecb51772cc41394cbb1a05e8e25a382dbeb Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Wed, 27 Jun 2012 17:37:03 -0400 Subject: [PATCH] Retain expanded state across violent updates. Bug: 6680363 Change-Id: I81e3b3a4e15b4ed240af62ad1023d4bbd9aaa646 --- .../src/com/android/systemui/statusbar/BaseStatusBar.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 04cff96e46ab4..0cce1aed8426b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -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