Skip to content

Commit 2761ccd

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "Retain expanded state across more than one violent update." into jb-dev
2 parents 9a8a28a + 5ae1ea8 commit 2761ccd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ public void updateNotification(IBinder key, StatusBarNotification notification)
913913
if (wasExpanded) {
914914
final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
915915
expandView(newEntry, true);
916+
newEntry.setUserExpanded(true);
916917
}
917918
}
918919

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public boolean expandable() {
6565
public boolean userExpanded() {
6666
return NotificationData.getUserExpanded(row);
6767
}
68+
/**
69+
* Set the flag indicating that this was manually expanded by the user.
70+
*/
71+
public boolean setUserExpanded(boolean userExpanded) {
72+
return NotificationData.setUserExpanded(row, userExpanded);
73+
}
6874
}
6975
private final ArrayList<Entry> mEntries = new ArrayList<Entry>();
7076
private final Comparator<Entry> mEntryCmp = new Comparator<Entry>() {

0 commit comments

Comments
 (0)