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
This commit is contained in:
Yasin Kilicdere
2023-06-15 22:34:06 +01:00
parent ec972ee5d2
commit 2eef737afe

View File

@@ -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());