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

Commit 649924d0 authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: Show High notifications on AOD

Previously, it was only Urgent.

Bug: 30876804
Test: Receive notification that is high, but does not peek (e.g. Gmail) while screen is off. Verify it shows on Ambient Display
Change-Id: I9233a96abbc55a54dc5fab81ad79ee0980a0a035
parent 0bb70091
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6926,7 +6926,10 @@ public class StatusBar extends SystemUI implements DemoMode,
            return false;
        }

        if (mNotificationData.getImportance(sbn.getKey()) < NotificationManager.IMPORTANCE_HIGH) {
        // Allow peeking for DEFAULT notifications only if we're on Ambient Display.
        int importanceLevel = isDozing() ? NotificationManager.IMPORTANCE_DEFAULT
                : NotificationManager.IMPORTANCE_HIGH;
        if (mNotificationData.getImportance(sbn.getKey()) < importanceLevel) {
            if (DEBUG) Log.d(TAG, "No peeking: unimportant notification: " + sbn.getKey());
            return false;
        }