summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-06-27 17:37:03 -0400
committerChris Wren <cwren@android.com>2012-06-27 17:57:56 -0400
commitc9433ecb51772cc41394cbb1a05e8e25a382dbeb (patch)
tree844538429a17ff93da6bb0110a96c26e1ece944a /packages
parentb6d148d02a9764abd40af50b096599bb148571b3 (diff)
downloadframeworks_base-c9433ecb51772cc41394cbb1a05e8e25a382dbeb.zip
frameworks_base-c9433ecb51772cc41394cbb1a05e8e25a382dbeb.tar.gz
frameworks_base-c9433ecb51772cc41394cbb1a05e8e25a382dbeb.tar.bz2
Retain expanded state across violent updates.
Bug: 6680363 Change-Id: I81e3b3a4e15b4ed240af62ad1023d4bbd9aaa646
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index 04cff96..0cce1ae 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