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

Commit 2eef737a authored by Yasin Kilicdere's avatar Yasin Kilicdere
Browse files

Don't show ImmersiveMode notification message for windows that have

a z-index higher than TYPE_STATUS_BAR.

Fix: 273554695
Test: Visual - adb shell settings put secure immersive_mode_confirmations unconfirmed
Change-Id: I4fec677bba58cbf8348ae38e561e3c8f9115dea7
parent ec972ee5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2582,7 +2582,8 @@ public class DisplayPolicy {
        if (win == null) {
            return false;
        }
        if (win == getNotificationShade() || win.isActivityTypeDream()) {
        if (win.mPolicy.getWindowLayerLw(win) > win.mPolicy.getWindowLayerFromTypeLw(
                WindowManager.LayoutParams.TYPE_STATUS_BAR) || win.isActivityTypeDream()) {
            return false;
        }
        return getInsetsPolicy().hasHiddenSources(Type.navigationBars());