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

Commit 11f4cb1b authored by Chris Wren's avatar Chris Wren Committed by Android (Google) Code Review
Browse files

Merge "decide interruptions based on current data, not previous data." into mnc-dev

parents 45a0bb18 0c274b10
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1837,7 +1837,7 @@ public abstract class BaseStatusBar extends SystemUI implements
            logUpdate(entry, n);
        }
        boolean applyInPlace = shouldApplyInPlace(entry, n);
        boolean shouldInterrupt = shouldInterrupt(entry);
        boolean shouldInterrupt = shouldInterrupt(entry, notification);
        boolean alertAgain = alertAgain(entry, n);

        entry.notification = notification;
@@ -2009,7 +2009,10 @@ public abstract class BaseStatusBar extends SystemUI implements
    }

    protected boolean shouldInterrupt(Entry entry) {
        StatusBarNotification sbn = entry.notification;
        return shouldInterrupt(entry, entry.notification);
    }

    protected boolean shouldInterrupt(Entry entry, StatusBarNotification sbn) {
        if (mNotificationData.shouldFilterOut(sbn)) {
            if (DEBUG) {
                Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out.");