summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-07-25 17:50:30 +0200
committerChristoph Studer <chstuder@google.com>2014-07-30 21:43:17 +0200
commitc8db24bc32034accf1eb614c8d68bb80b41ae73f (patch)
tree169263034e6bb7a71586b93e1766bdb04d8dda3e /core/java/android
parent4579fd2d0c23f92546633e472439f9207acb3ae0 (diff)
SysUI: Display group children when no summary is present
Also move common notification filtering into NotificationData such that clients won't have to do it themselves anymore. Probably also fixes a couple of multi-user issues. Bug: 16302692 Bug: 16224431 Change-Id: Ic3c11cd1a224044486f5544e068ca5297d30c521
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Notification.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 518a6c281a66..c7fdbed43797 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -1732,6 +1732,20 @@ public class Notification implements Parcelable
}
/**
+ * @hide
+ */
+ public boolean isGroupSummary() {
+ return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) != 0;
+ }
+
+ /**
+ * @hide
+ */
+ public boolean isGroupChild() {
+ return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) == 0;
+ }
+
+ /**
* Builder class for {@link Notification} objects.
*
* Provides a convenient way to set the various fields of a {@link Notification} and generate