diff --git a/build.gradle b/build.gradle index c194615..8d7d90b 100644 --- a/build.gradle +++ b/build.gradle @@ -49,8 +49,9 @@ android { versionName libraryVersion } - dexOptions { - javaMaxHeapSize "2048m" + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_6 + targetCompatibility JavaVersion.VERSION_1_6 } buildTypes { diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index c5b8128..43bda22 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -739,14 +739,14 @@ private static Paint.Cap getStrokeCap(final int value) { private final class ProgressUpdateListener implements ValueAnimator.AnimatorUpdateListener { @Override public void onAnimationUpdate(final ValueAnimator animation) { - setProgressInternal((float) animation.getAnimatedValue()); + setProgressInternal((Float) animation.getAnimatedValue()); } } private final class StartUpdateListener implements ValueAnimator.AnimatorUpdateListener { @Override public void onAnimationUpdate(final ValueAnimator animation) { - mIndeterminateStartAngle = (float) animation.getAnimatedValue(); + mIndeterminateStartAngle = (Float) animation.getAnimatedValue(); invalidate(); } } @@ -754,7 +754,7 @@ public void onAnimationUpdate(final ValueAnimator animation) { private final class SweepUpdateListener implements ValueAnimator.AnimatorUpdateListener { @Override public void onAnimationUpdate(final ValueAnimator animation) { - mIndeterminateSweepAngle = (float) animation.getAnimatedValue(); + mIndeterminateSweepAngle = (Float) animation.getAnimatedValue(); } }