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

Commit d14173e5 authored by lumark's avatar lumark
Browse files

Fix LocationOnScreenTests failure

The issue instroduced by CL [1], mis-understood
isSelfAnimating meaning that will also check if the transition is wait
for animating, but it will break the test that use no_animation theme,
that caused delayed will set as true in commitVisibity then
didn't callback onAppTransitionFinishedLocked -> onEnterAnimationComplete
for activity.

Revert to use isRealAnimating to check if need delay to unblock the test
fail.

[1]: I83504d578a17856623a53c04a7d3c54e5bcab5f4

Fix: 129359550
Test: atest LocationOnScreenTests

Change-Id: I913fff0afa6dad1aab83c1f7ad026e3d9e4d56e5
parent 356c5dfd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -666,7 +666,7 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
            }
        }

        if (isSelfAnimating()) {
        if (isReallyAnimating()) {
            delayed = true;
        } else {