Skip to content

Commit

Permalink
Fix issue neild001#43
Browse files Browse the repository at this point in the history
as mentioned by DaXmYsT
+ minor javadoc cleanup
  • Loading branch information
mudar committed Dec 14, 2017
1 parent cd9576a commit acccea8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SeekArc_library/src/com/triggertrap/seekarc/SeekArc.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit acccea8

Please sign in to comment.