material-animated-switch icon indicating copy to clipboard operation
material-animated-switch copied to clipboard

Listener called twice when switch checked.

Open Chirag27592 opened this issue 9 years ago • 4 comments

when toggle switch it's listener called two times . untitled

Chirag27592 avatar Jul 08 '15 18:07 Chirag27592

I think there the methode onAnimationEnd() is called twice because the BallShadowPainter inherited from BallPainter. When doActionDown is called, it set state for all ballPainter and ballShadowPainter. The setState method from BallPainter which call moveAnimator.start()/reverse(). When the ballPainter and ballShadowPainter, they both call the onAnimationEnd().

kmenager avatar Aug 18 '15 09:08 kmenager

I also have the same issue.

DenisGL avatar Aug 20 '15 14:08 DenisGL

Same issue

jkwiecien avatar Jan 08 '16 11:01 jkwiecien

Same issue here

javadbacker avatar May 09 '20 20:05 javadbacker