You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a small bug in this library. For example: when you set the max progress to 20 and the progress to 15, then set the max progress to 10 and the progress to 5, the actual progress will be set to 10 because of this line.
field =if (progress <= progressMax) value else progressMax
This is a very easy fix, just change if (progress ... to if (value ... so that it checks the actual progress you set.
The use case where i am facing this is in a recyclerview. Here i have different max progress and progress values in each entry for a leveling system. As rows get recycled the max progress is changed before the progress.
A quick workaround (without changing the library) is to set the progress to 0 before changing the maxProgress.
The text was updated successfully, but these errors were encountered:
I think there is a small bug in this library. For example: when you set the max progress to 20 and the progress to 15, then set the max progress to 10 and the progress to 5, the actual progress will be set to 10 because of this line.
CircularProgressBar/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.kt
Line 43 in 471e1c6
This is a very easy fix, just change
if (progress ...
toif (value ...
so that it checks the actual progress you set.The use case where i am facing this is in a recyclerview. Here i have different max progress and progress values in each entry for a leveling system. As rows get recycled the max progress is changed before the progress.
A quick workaround (without changing the library) is to set the progress to 0 before changing the maxProgress.
The text was updated successfully, but these errors were encountered: