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

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

Merge "NoMan: Fix speedbump for PRIORITY_MIN intrusives" into lmp-dev

parents f2f0a071 327bf78a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2636,7 +2636,10 @@ public class NotificationManagerService extends SystemService {
                visibilityOverrides.putInt(record.sbn.getKey(),
                        record.getPackageVisibilityOverride());
            }
            // Find first min-prio notification for speedbump placement.
            if (speedBumpIndex == -1 &&
                    // Intrusiveness trumps priority, hence ignore intrusives.
                    !record.isRecentlyIntrusive() &&
                    record.sbn.getNotification().priority == Notification.PRIORITY_MIN) {
                speedBumpIndex = keys.size() - 1;
            }