Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d953d0e authored by Christoph Studer's avatar Christoph Studer Committed by Android (Google) Code Review
Browse files

Merge "NoMan: Use Notification.isGroupX() methods" into lmp-dev

parents 70d26c2d 3f31f5db
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2333,7 +2333,7 @@ public class NotificationManagerService extends SystemService {
    private void cancelGroupChildrenLocked(NotificationRecord r, int callingUid, int callingPid,
            String listenerName) {
        Notification n = r.getNotification();
        if (n.getGroup() == null || (n.flags & Notification.FLAG_GROUP_SUMMARY) == 0) {
        if (!n.isGroupSummary()) {
            return;
        }

@@ -2508,8 +2508,7 @@ public class NotificationManagerService extends SystemService {
            return false;
        }
        Notification n = sbn.getNotification();
        if (listener.targetSdkVersion < Build.VERSION_CODES.L &&
                n.getGroup() != null && (n.flags & Notification.FLAG_GROUP_SUMMARY) == 0)  {
        if (listener.targetSdkVersion < Build.VERSION_CODES.L && n.isGroupChild())  {
            return false;
        }
        return true;