From acccea89eefc12be96f8605c11fed49396563c08 Mon Sep 17 00:00:00 2001 From: Mudar Noufal Date: Thu, 14 Dec 2017 17:07:52 -0500 Subject: [PATCH] Fix issue #43 as mentioned by DaXmYsT + minor javadoc cleanup --- .../src/com/triggertrap/seekarc/SeekArc.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java b/SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java index 4c6a2bd..01a112c 100644 --- a/SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java +++ b/SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java @@ -139,7 +139,7 @@ public interface OnSeekArcChangeListener { * @param progress * The current progress level. This will be in the range * 0..max where max was set by - * {@link ProgressArc#setMax(int)}. (The default value for + * {@link SeekArc#setMax(int)}. (The default value for * max is 100.) * @param fromUser * True if the progress change was initiated by the user. @@ -277,8 +277,10 @@ protected void onDraw(Canvas canvas) { final int arcStart = mStartAngle + mAngleOffset + mRotation; final int arcSweep = mSweepAngle; canvas.drawArc(mArcRect, arcStart, arcSweep, false, mArcPaint); - canvas.drawArc(mArcRect, arcStart, mProgressSweep, false, - mProgressPaint); + if (mProgress > 0) { + canvas.drawArc(mArcRect, arcStart, mProgressSweep, false, + mProgressPaint); + } if(mEnabled) { // Draw the thumb nail @@ -460,7 +462,7 @@ private void updateProgress(int progress, boolean fromUser) { * @param l * The seek bar notification listener * - * @see SeekArc.OnSeekBarChangeListener + * @see SeekArc::OnSeekBarChangeListener */ public void setOnSeekArcChangeListener(OnSeekArcChangeListener l) { mOnSeekArcChangeListener = l;