diff options
| author | 2024-04-30 08:45:50 +0000 | |
|---|---|---|
| committer | 2024-04-30 08:45:50 +0000 | |
| commit | 02aea3b17294c49fe20f943aba6cc543b121bf4c (patch) | |
| tree | 64acb6c6784118575b5cb6b74e2eb812eb2f4229 | |
| parent | 0e54359cc41439adb58602975aa67c0cc9036fc4 (diff) | |
| parent | c37bc9147086f497ac7b1595083836014f524d5f (diff) | |
Merge "Hide SAW subwindows" into main
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowState.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index 15eea63de64f..c25080f9e756 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -3092,12 +3092,13 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP } void setForceHideNonSystemOverlayWindowIfNeeded(boolean forceHide) { + final int baseType = getBaseType(); if (mSession.mCanAddInternalSystemWindow - || (!isSystemAlertWindowType(mAttrs.type) && mAttrs.type != TYPE_TOAST)) { + || (!isSystemAlertWindowType(baseType) && baseType != TYPE_TOAST)) { return; } - if (mAttrs.type == TYPE_APPLICATION_OVERLAY && mAttrs.isSystemApplicationOverlay() + if (baseType == TYPE_APPLICATION_OVERLAY && mAttrs.isSystemApplicationOverlay() && mSession.mCanCreateSystemApplicationOverlay) { return; } |