From 13031aef70ae2da147599a2c443e11cc660b0b30 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Fri, 12 Jan 2018 16:07:46 +0300 Subject: [PATCH] Dev --- .../android/circularprogressbar/CircularProgressBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index 4f93da3..0685fb2 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -545,7 +545,7 @@ private void invalidateForegroundStrokeCapAngle() { switch (strokeCap) { case SQUARE: case ROUND: { - float r = Math.min(mDrawRect.width(), mDrawRect.height()) / 2f; + float r = mDrawRect.width() / 2f; if (r != 0) { mForegroundStrokeCapAngle = 90f * mForegroundStrokePaint.getStrokeWidth() / (float) Math.PI / r; } else {