summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-09-02 00:25:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-02 00:25:05 +0000
commit36a75d6aefcddb91df7d513292d346f1f51ec702 (patch)
tree1a1e6fad536eec06b81259eeaba2ba10fd3bd49c /packages
parent0c5fd7e3791f0b1a3a3b1c1ebe34f568155ba11f (diff)
parent0b4aeab281d0bd18e67f245eeccbbc468f3065f1 (diff)
downloadframeworks_base-36a75d6aefcddb91df7d513292d346f1f51ec702.zip
frameworks_base-36a75d6aefcddb91df7d513292d346f1f51ec702.tar.gz
frameworks_base-36a75d6aefcddb91df7d513292d346f1f51ec702.tar.bz2
Merge "Fixed a crash in the notification group manager" into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java7
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 {