diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index 0fcef19..4ee0b66 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -236,6 +236,15 @@ public void setIndeterminateSweepAnimationDuration(@IntRange(from = 0) long dura } } + /** + * Foreground stroke cap + */ + public void setForegroundStrokeCap(@NonNull Paint.Cap cap) { + mForegroundStrokePaint.setStrokeCap(cap); + invalidateForegroundStrokeCapAngle(); + invalidate(); + } + /** * Foreground stroke color */ @@ -254,14 +263,6 @@ public void setForegroundStrokeWidth(@FloatRange(from = 0f, to = Float.MAX_VALUE invalidate(); } - /** - * Foreground stroke cap - */ - public void setForegroundStrokeCap(@NonNull Paint.Cap cap) { - mForegroundStrokePaint.setStrokeCap(cap); - invalidate(); - } - /** * Background stroke color */