Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 854fe8d9 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent ebba1751
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;