diff --git a/library/src/main/java/com/wangjie/wavecompat/WaveDrawable.java b/library/src/main/java/com/wangjie/wavecompat/WaveDrawable.java index bed9117..c886c37 100644 --- a/library/src/main/java/com/wangjie/wavecompat/WaveDrawable.java +++ b/library/src/main/java/com/wangjie/wavecompat/WaveDrawable.java @@ -80,7 +80,7 @@ public void startWaveAnimator() { waveAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { - currentRadius = (int) animation.getAnimatedValue(); + currentRadius = (Integer) animation.getAnimatedValue(); invalidateSelf(); } });