diff options
author | Chris Wren <cwren@android.com> | 2012-06-28 11:43:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-28 11:43:16 -0700 |
commit | 29a5e4a3831e5bd38552fae33801fe25f4042591 (patch) | |
tree | 413675e54e32b2c16d7783364f45a57b28e72cab /packages/SystemUI/src | |
parent | 51f755abfd31e8a41d6121cbeaa7a0727f0ea0ad (diff) | |
parent | 2761ccd4799971b7ad696f6f94036ca16113c78d (diff) | |
download | frameworks_base-29a5e4a3831e5bd38552fae33801fe25f4042591.zip frameworks_base-29a5e4a3831e5bd38552fae33801fe25f4042591.tar.gz frameworks_base-29a5e4a3831e5bd38552fae33801fe25f4042591.tar.bz2 |
am 2761ccd4: Merge "Retain expanded state across more than one violent update." into jb-dev
* commit '2761ccd4799971b7ad696f6f94036ca16113c78d':
Retain expanded state across more than one violent update.
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 1 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java | 6 |
2 files changed, 7 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 4f485a2..ec99513 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -913,6 +913,7 @@ public abstract class BaseStatusBar extends SystemUI implements if (wasExpanded) { final NotificationData.Entry newEntry = mNotificationData.findByKey(key); expandView(newEntry, true); + newEntry.setUserExpanded(true); } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java index 1a07ed3..dfd8cf8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java @@ -65,6 +65,12 @@ public class NotificationData { public boolean userExpanded() { return NotificationData.getUserExpanded(row); } + /** + * Set the flag indicating that this was manually expanded by the user. + */ + public boolean setUserExpanded(boolean userExpanded) { + return NotificationData.setUserExpanded(row, userExpanded); + } } private final ArrayList<Entry> mEntries = new ArrayList<Entry>(); private final Comparator<Entry> mEntryCmp = new Comparator<Entry>() { |