Skip to content

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