Fix SimpleAnimatorListener for RenderNodeAnimator in CheckTextView
This commit is contained in:
1 parent
d06922cb08
commit
bc800b5a1b
1 file changed
+10
-1
@@ -116,9 +116,18 @@ public class CheckTextView extends TextView implements OnClickListener, Hotspota
|
||||
|
||||
private Animator.AnimatorListener mAnimatorListener = new SimpleAnimatorListener() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
public void onAnimationCancel(Animator animation) {
|
||||
super.onAnimationCancel(animation);
|
||||
mAnimator = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation, boolean canceled) {
|
||||
super.onAnimationEnd(animation, canceled);
|
||||
if (!canceled) {
|
||||
mAnimator = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public void prepareAnimations() {
|
||||
|
||||
Reference in new issue
Block a user