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

Commit 3f31f5db authored by Christoph Studer's avatar Christoph Studer
Browse files

NoMan: Use Notification.isGroupX() methods

Change-Id: I041f449361959440a5be7375e655a31fd14e7862
parent 5e8cb22e
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;