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

Commit 9dff23b5 authored by Selim Cinek's avatar Selim Cinek
Browse files

Dissallow Heads up when redacted

Change-Id: Ie5069f3fa6b6811da352c60239f48224d106a04f
Fixes: 69137468
Test: phonecall while occluded and with redacted notifications
parent 404f8103
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -7250,6 +7250,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());