Merge "Do not wait for window with alpha=0" into udc-dev

This commit is contained in:
Riddle Hsu
2023-04-08 16:34:25 +00:00
committed by Android (Google) Code Review

View File

@@ -5647,7 +5647,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
@Override
boolean isSyncFinished() {
if (!isVisibleRequested()) {
if (!isVisibleRequested() || isFullyTransparent()) {
// Don't wait for invisible windows. However, we don't alter the state in case the
// window becomes visible while the sync group is still active.
return true;