leandroBorgesFerreira / LoadingButtonAndroid

A button to substitute the ProgressDialog
MIT License
1.94k stars 214 forks source link

Cannot change image when calling doneLoadingAnimation() a second time #120

Closed cdongieux closed 5 years ago

cdongieux commented 5 years ago

Hi,

I'm using your button to launch an action that might succeed or fail. When it succeeds, I call doneLoadingAnimation(colorSuccess, bitmapSuccess), and when it fails I call doneLoadingAnimation(colorFailure, bitmapFailure). The first time I click the button, if the action fails the animation displays as expected. But after that if the action succeeds, the animation does not displays as expected.

Best regards.

leandroBorgesFerreira commented 5 years ago

@cdongieux I will take a look at this behaviour. Unfortunately I am taking care of some personal matters, so it may take some time =/

MuriloCalegari commented 5 years ago

Any known workarounds?

leandroBorgesFerreira commented 5 years ago

This should be fixed in the 2.1.1 version