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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user