summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-09-02 15:22:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-02 15:22:17 +0000
commite0320054a787593594c197098ef6ee8d7001f2ea (patch)
tree0e40d6c840a671e90d4790fd61500beb9d3c33ec /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
parent2debc99efa952e2da912b459ec51c3264d3deccc (diff)
parentd722f273237ed4c77ebf9a261cff776125d562e1 (diff)
downloadframeworks_base-e0320054a787593594c197098ef6ee8d7001f2ea.zip
frameworks_base-e0320054a787593594c197098ef6ee8d7001f2ea.tar.gz
frameworks_base-e0320054a787593594c197098ef6ee8d7001f2ea.tar.bz2
Merge "SysUI: Ignore group children when summary is present" into lmp-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java18
1 files changed, 18 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 399742a..77cc4e6 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -365,6 +365,24 @@ public abstract class BaseStatusBar extends SystemUI implements
Notification n = sbn.getNotification();
boolean isUpdate = mNotificationData.get(sbn.getKey()) != null
|| isHeadsUp(sbn.getKey());
+
+ // Ignore children of notifications that have a summary, since we're not
+ // going to show them anyway. This is true also when the summary is canceled,
+ // because children are automatically canceled by NoMan in that case.
+ if (n.isGroupChild() &&
+ mNotificationData.isGroupWithSummary(sbn.getGroupKey())) {
+ if (DEBUG) {
+ Log.d(TAG, "Ignoring group child due to existing summary: " + sbn);
+ }
+
+ // Remove existing notification to avoid stale data.
+ if (isUpdate) {
+ removeNotification(sbn.getKey(), rankingMap);
+ } else {
+ mNotificationData.updateRanking(rankingMap);
+ }
+ return;
+ }
if (isUpdate) {
updateNotification(sbn, rankingMap);
} else {