From 7c9eb716afeb505749d0ecd0a8489f84d72a66a2 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Thu, 11 Jan 2018 19:42:27 +0300 Subject: [PATCH] Dev --- .../android/circularprogressbar/CircularProgressBar.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index 63fe61b..9fdaf48 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -330,8 +330,9 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int widthSize = MeasureSpec.getSize(widthMeasureSpec); int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); - int defaultWidth = Math.max(getSuggestedMinimumWidth(), mDefaultSize); - int defaultHeight = Math.max(getSuggestedMinimumHeight(), mDefaultSize); + int defaultSize = mDefaultSize; + int defaultWidth = Math.max(getSuggestedMinimumWidth(), defaultSize); + int defaultHeight = Math.max(getSuggestedMinimumHeight(), defaultSize); int width; int height; switch (widthMode) {