SeekArc is always a circle

I am using the library: https://github.com/Ross-Gibson/SeekArc . and I have a strange situation. This is the code in xml:

<com.triggertrap.seekarc.SeekArc
     android: id = "@+id/seekArcRestPauseTime"
     android: layout_width = "match_parent"
     android: layout_height = "wrap_content"
     android: paddingLeft = "@dimen/fit_2BU"
     android: paddingTop = "@dimen/fit_3BU"
     seekarc: rotation = "180"
     seekarc: startAngle = "50"
     seekarc: sweepAngle = "260"
     seekarc: touchInside = "true"
     seekarc: arcWidth = "@dimen/fit_BU"
     seekarc: progressWidth = "@dimen/fit_BU"
     seekarc: enabled = "false"
     seekarc: roundEdges = "true"
     seekarc: arcColor = "@color/blue_heart"
     seekarc: progressColor = "@color/yellow_heart" / >

as you can see i am adding startAngle and sweepAngle. On my samsung s3 with android 4.3 seekarc looks great, but on samsung s6 with android 5.1.1 my seekarc always shows up as a circle, with no starting angle. When I set progress to 1, the arc search looks right, but when I set 0 angles, I disappear and again I see a whole circus. Any ideas why?

+4
source share
2 answers

I believe that I got the decision after a long reflection,

Your SeekArc file has a method called

private void updateProgress(int progress, boolean fromUser) {
    if (progress == INVALID_PROGRESS_VALUE) {
        return;
    }
    //This is the key area to block the looping [Starts]
    if (mProgress == mMax && progress != (mProgress - 1)) {
        return;
    }
    if (mProgress == mMin && progress != (mProgress + 1)) {
        return;
    }
    // This is the key area to block the looping [Ends]
    progress = (progress > mMax) ? mMax : progress;
    progress = (progress < 0) ? 0 : progress;
    mProgress = progress;

    if (mOnSeekArcChangeListener != null) {
        mOnSeekArcChangeListener.onProgressChanged(this, progress,
                fromUser);
    }

    mProgressSweep = (float) progress / mMax * mSweepAngle;

    updateThumbPosition();

    invalidate();
}
+3
source