DO NOT MERGE - Exclude TYPE_PRIVATE_PRESENTATION app visiblity am: 88e98e0a85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19537073 Change-Id: If30e4c962484ffc6fd1f10b5c88c5d79bfcec10f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3532,7 +3532,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
||||
}
|
||||
// Exclude toast because legacy apps may show toast window by themselves, so the misused
|
||||
// apps won't always be considered as foreground state.
|
||||
if (mAttrs.type >= FIRST_SYSTEM_WINDOW && mAttrs.type != TYPE_TOAST) {
|
||||
// Exclude private presentations as they can only be shown on private virtual displays and
|
||||
// shouldn't be the cause of an app be considered foreground.
|
||||
if (mAttrs.type >= FIRST_SYSTEM_WINDOW && mAttrs.type != TYPE_TOAST
|
||||
&& mAttrs.type != TYPE_PRIVATE_PRESENTATION) {
|
||||
mWmService.mAtmService.mActiveUids.onNonAppSurfaceVisibilityChanged(mOwnerUid, shown);
|
||||
}
|
||||
if (mIsImWindow && mWmService.mAccessibilityController != null) {
|
||||
|
||||
Reference in New Issue
Block a user