Fixing non-sending wallpaper animation finish event

Wallpaper animation may be interrupted with an animation to go to Normal state.
Then the animation won't succeed, but it will still end.

Bug: 315074923
Flag: N/A
Test: presubmit
Change-Id: I15a106de78030f6935978539d333cc85ee95b4e7
This commit is contained in:
Vadim Tryshev
2023-12-08 14:11:55 -08:00
parent d60f56c36e
commit 3277cbdb17

View File

@@ -1654,9 +1654,10 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
addCujInstrumentation(anim, playFallBackAnimation
? CUJ_APP_CLOSE_TO_HOME_FALLBACK : CUJ_APP_CLOSE_TO_HOME);
anim.addListener(new AnimationSuccessListener() {
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationSuccess(Animator animator) {
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
AccessibilityManagerCompat.sendTestProtocolEventToTest(
mLauncher, WALLPAPER_OPEN_ANIMATION_FINISHED_MESSAGE);
}