From 0aec9181078c4ce33e8789868b0c4f1cdd8a7ed9 Mon Sep 17 00:00:00 2001 From: Cooppor Date: Fri, 10 Jan 2020 02:10:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E6=8C=89=E8=AE=BE?= =?UTF-8?q?=E5=AE=9A=E8=BF=9B=E5=BA=A6=E8=B5=8B=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/warkiz/widget/IndicatorSeekBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java b/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java index 092bfea..8563ad3 100644 --- a/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java +++ b/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java @@ -393,7 +393,7 @@ private void refreshSeekBarLocation() { initTextsArray(); //adjust thumb auto,so find out the closest progress in the mProgressArr array and replace it. //it is not necessary to adjust thumb while count is less than 2. - if (mTicksCount > 2) { + if ((!mSeekSmoothly) && mTicksCount > 2) { mProgress = mProgressArr[getClosestIndex()]; lastProgress = mProgress; }