From fc73601c9f23f4418a697e048921426a8596a6b2 Mon Sep 17 00:00:00 2001 From: jiang yantao Date: Thu, 27 Jul 2017 18:20:24 +0800 Subject: [PATCH] Update CubeTransitionIndicator.java --- .../java/com/wang/avi/indicators/CubeTransitionIndicator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/wang/avi/indicators/CubeTransitionIndicator.java b/library/src/main/java/com/wang/avi/indicators/CubeTransitionIndicator.java index 181024f..c4ae422 100644 --- a/library/src/main/java/com/wang/avi/indicators/CubeTransitionIndicator.java +++ b/library/src/main/java/com/wang/avi/indicators/CubeTransitionIndicator.java @@ -48,7 +48,7 @@ public ArrayList onCreateAnimators() { translationXAnim.setInterpolator(new LinearInterpolator()); translationXAnim.setDuration(1600); translationXAnim.setRepeatCount(-1); - translationXAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { + addUpdateListener(translationXAnim, new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { translateX[index] = (float) animation.getAnimatedValue();