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

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

Merge "NoMan: Fix speedbump when no low-prio notifs" into lmp-dev

parents 7851e464 ce2e23ff
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -609,8 +609,12 @@ public abstract class NotificationListenerService extends Service {
        }

        private boolean isAmbient(String key) {
            int firstAmbientIndex = mRankingUpdate.getFirstAmbientIndex();
            if (firstAmbientIndex < 0) {
                return false;
            }
            int rank = getRank(key);
            return rank >= 0 && rank >= mRankingUpdate.getFirstAmbientIndex();
            return rank >= 0 && rank >= firstAmbientIndex;
        }

        private boolean isIntercepted(String key) {
+1 −2
Original line number Diff line number Diff line
@@ -1422,8 +1422,7 @@ public abstract class BaseStatusBar extends SystemUI implements
    }

    private boolean shouldShowOnKeyguard(StatusBarNotification sbn) {
        return mShowLockscreenNotifications &&
                sbn.getNotification().priority >= Notification.PRIORITY_LOW;
        return mShowLockscreenNotifications && !mNotificationData.isAmbient(sbn.getKey());
    }

    protected void setZenMode(int mode) {