Do not wait for window with alpha=0

It can be considered as invisible.

The legacy transition also uses similar condition in
RrecentsAnimationController#isInterestingForAllDrawn.

Bug: 276717081
Test: Enable -1 screen and swipe up from app, isSyncFinished()
      can return true directly even if the drawn state is pending.

Change-Id: I711e35220e4386b4ad1a84a0f69719c9aa4e5a52
This commit is contained in:
Riddle Hsu
2023-03-28 20:58:33 +08:00
parent ebba175110
commit 854fe8d95d

View File

@@ -5646,7 +5646,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;