From c6ec9823ebe03a28535b5cc37fc88fe4915eba33 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Fri, 12 Jan 2018 15:05:57 +0300 Subject: [PATCH] Dev --- .../CircularProgressBar.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 */