From 8d11a5aa2d42416d580dcf7318200be8b8681dec Mon Sep 17 00:00:00 2001 From: Justin Koh Date: Mon, 4 Aug 2014 18:29:49 -0700 Subject: [PATCH] Allow listeners to see children Allow listeners to see notification children. Since L is not baked yet, keeping this version check makes it difficult to test apps. Bug: 16733244 Change-Id: I70afd6b99fc18c1f0b9188279c04fab80c37d414 --- .../server/notification/NotificationManagerService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 822bd5a385015..f575b9a5e6d0d 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -2511,10 +2511,7 @@ public class NotificationManagerService extends SystemService { if (!listener.enabledAndUserMatches(sbn.getUserId())) { return false; } - Notification n = sbn.getNotification(); - if (listener.targetSdkVersion < Build.VERSION_CODES.L && n.isGroupChild()) { - return false; - } + // TODO: remove this for older listeners. return true; }