Merge "Fix missing call to super cancel method" into tm-qpr-dev am: 607a976635
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19900948 Change-Id: I28f5459745388bd5b6714a993ea95a68cff09159 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -19,6 +19,8 @@ package com.android.launcher3.anim;
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
|
||||
import androidx.annotation.CallSuper;
|
||||
|
||||
/**
|
||||
* Extension of {@link AnimatorListenerAdapter} for listening for non-cancelled animations
|
||||
*/
|
||||
@@ -27,6 +29,7 @@ public abstract class AnimationSuccessListener extends AnimatorListenerAdapter {
|
||||
protected boolean mCancelled = false;
|
||||
|
||||
@Override
|
||||
@CallSuper
|
||||
public void onAnimationCancel(Animator animation) {
|
||||
mCancelled = true;
|
||||
}
|
||||
|
||||
@@ -345,6 +345,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
|
||||
@Override
|
||||
public void onAnimationCancel(Animator animation) {
|
||||
super.onAnimationCancel(animation);
|
||||
onStateTransitionFailed(state);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user