Merge "Allow listeners to see children" into lmp-dev

This commit is contained in:
Justin Koh
2014-08-05 16:56:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}