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

Commit 3dd54944 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Dissallow Heads up when redacted"

parents c783baca 9dff23b5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6838,6 +6838,15 @@ public class StatusBar extends SystemUI implements DemoMode,
            return false;
        }

        if (mIsOccluded && !isDozing()) {
            boolean devicePublic = isLockscreenPublicMode(mCurrentUserId);
            boolean userPublic = devicePublic || isLockscreenPublicMode(sbn.getUserId());
            boolean needsRedaction = needsRedaction(entry);
            if (userPublic && needsRedaction) {
                return false;
            }
        }

        if (sbn.getNotification().fullScreenIntent != null) {
            if (mAccessibilityManager.isTouchExplorationEnabled()) {
                if (DEBUG) Log.d(TAG, "No peeking: accessible fullscreen: " + sbn.getKey());