summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/anim
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2022-09-09 05:30:04 +0000
committerWinson Chung <winsonc@google.com>2022-09-09 05:58:27 +0000
commit82638f6ef1270fa50bbf88ce7a4fd323193925c3 (patch)
tree09bb5e2752da0b53f2300e135682d94740f746f1 /src/com/android/launcher3/anim
parent5aa6deff8d1070a9261baf168a5f657de56dc4a9 (diff)
downloadLauncher3-82638f6ef1270fa50bbf88ce7a4fd323193925c3.tar.gz
Fix missing call to super cancel method
- Without the call, it's interpreted as a successful animation to the listener even though it was canceled Bug: 245829938 Test: Swipe to previous task, immediately after settling touch the swipe area again Change-Id: I531cbda0c2bc8168a312a14854a7a73fafd8f678
Diffstat (limited to 'src/com/android/launcher3/anim')
-rw-r--r--src/com/android/launcher3/anim/AnimationSuccessListener.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/anim/AnimationSuccessListener.java b/src/com/android/launcher3/anim/AnimationSuccessListener.java
index a312070e58..6196df23ed 100644
--- a/src/com/android/launcher3/anim/AnimationSuccessListener.java
+++ b/src/com/android/launcher3/anim/AnimationSuccessListener.java
@@ -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;
}