Merge "Change visibility check to WC.isVisible" into rvc-dev

This commit is contained in:
Jorim Jaggi
2020-03-10 12:10:57 +00:00
committed by Android (Google) Code Review

View File

@@ -6135,7 +6135,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);
}