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();