From 3277cbdb171005f1e35df90fdc4ab5b96f3569b0 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Fri, 8 Dec 2023 14:11:55 -0800 Subject: [PATCH] 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 --- .../com/android/launcher3/QuickstepTransitionManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index 8db63e3d88..4898761736 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -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); }