diff options
author | Selim Cinek <cinek@google.com> | 2015-09-02 00:54:32 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-02 00:54:32 +0000 |
commit | 2af5010a6793d27eda86432f1ec3ebbe92e1d99e (patch) | |
tree | bb2156de418ff27b1a4f2b4684c53c81f24c008f /packages | |
parent | 0e150a8b947f657a5875382bd65f37b5a07c0f79 (diff) | |
parent | 36a75d6aefcddb91df7d513292d346f1f51ec702 (diff) | |
download | frameworks_base-2af5010a6793d27eda86432f1ec3ebbe92e1d99e.zip frameworks_base-2af5010a6793d27eda86432f1ec3ebbe92e1d99e.tar.gz frameworks_base-2af5010a6793d27eda86432f1ec3ebbe92e1d99e.tar.bz2 |
am 36a75d6a: Merge "Fixed a crash in the notification group manager" into mnc-dev
* commit '36a75d6aefcddb91df7d513292d346f1f51ec702':
Fixed a crash in the notification group manager
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
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 950b162..310625e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java @@ -78,6 +78,13 @@ public class NotificationGroupManager { Notification notif = sbn.getNotification(); String groupKey = sbn.getGroupKey(); final NotificationGroup group = mGroupMap.get(groupKey); + if (group == null) { + // When an app posts 2 different notifications as summary of the same group, then a + // cancellation of the first notification removes this group. + // This situation is not supported and we will not allow such notifications anymore in + // the close future. See b/23676310 for reference. + return; + } if (notif.isGroupSummary()) { group.summary = null; } else { |