Merge "Don't show ImmersiveMode notification message for windows that have a z-index higher than TYPE_STATUS_BAR." into udc-qpr-dev

This commit is contained in:
TreeHugger Robot
2023-06-22 09:32:22 +00:00
committed by Android (Google) Code Review

View File

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