commit | 9184f9c4cdff27c6eea47c885d95bad2859b5eb3 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Tue Feb 02 17:36:53 2016 -0800 |
committer | Selim Cinek <cinek@google.com> | Wed Feb 03 20:30:20 2016 -0800 |
tree | f5a90ef2ebbd38b6c488e77ad04803ee3435d64b | |
parent | b66685b0d08147641253aab0a95b9bd5edaa1549 [diff] [blame] |
Collapse all groups now when the shade is collapsed This could lead to huuge HUNs Bug: 26884670 Change-Id: Ia99029ccc56b0fb9338bff32c300eaf27ea10c51
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java index 3130eb9..d3681b7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java
@@ -154,10 +154,14 @@ } mBarState = newState; if (mBarState == StatusBarState.KEYGUARD) { - for (NotificationGroup group : mGroupMap.values()) { - if (group.expanded) { - setGroupExpanded(group, false); - } + collapseAllGroups(); + } + } + + public void collapseAllGroups() { + for (NotificationGroup group : mGroupMap.values()) { + if (group.expanded) { + setGroupExpanded(group, false); } } }