Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix partial ring in the progress drawable for the first cycle #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susonthapa
Copy link

The progress drawable's ring is only partially displayed for the first rotation as show in the gif below.
progress-issue
I have fixed the issue, it was caused due to multiple calls to the start() function of the drawable (I was so stupid, it took me 3 hours to figure that out). You can see in the gif below, now the progress drawable behaves normally.
progress-issue-fix

Forgive me if the multiple calls to the start() function is intentional.

@susonthapa
Copy link
Author

@razir Can you please review it ?

@raffaelgyr
Copy link

It is still possible for the start() function to be called more than once, especially when the button is inside a RecyclerView item. I would recommend also checking isRunning before calling start().

raffaelgyr added a commit to raffaelgyr/ProgressButton that referenced this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants