Change visibility check to WC.isVisible

...in order to closer match our mental model of what we consider
a window to be visible.

Bug: 118118435
Test: adb shell dumpsys window visible while status bar hidden
Change-Id: I4247eb2d52ddbd07c38824300965d7499b99848f
This commit is contained in:
Jorim Jaggi
2020-03-10 01:24:25 +01:00
parent dc8feb4065
commit 784e765ac0

View File

@@ -6126,7 +6126,7 @@ public class WindowManagerService extends IWindowManager.Stub
}
mRoot.forAllWindows((w) -> {
if ((!visibleOnly || w.mWinAnimator.getShown())
if ((!visibleOnly || w.isVisible())
&& (!appsOnly || w.mActivityRecord != null)) {
windows.add(w);
}