material-animated-switch
material-animated-switch copied to clipboard
Listener called twice when switch checked.
when toggle switch it's listener called two times .
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().
I also have the same issue.
Same issue
Same issue here