Closed EugeneHoran closed 9 years ago
+1
+1
The version 1.1 have a toggle() method that changes the state of the swicth, i'd like to add check() and unCheck() methods without trigger any animations in a future release.
the toggle method does not work, I get a nullpointer somewhere in the library
I get a nullpointer
this
Hey.
I am working rite now. Once I get home I will send you all of the info. Cheers!
On Thu, Jul 23, 2015, 9:15 AM Dmitry Gureev notifications@github.com wrote:
I get a nullpointer
this
— Reply to this email directly or view it on GitHub https://github.com/glomadrian/material-animated-switch/issues/4#issuecomment-124093487 .
java.lang.RuntimeException: Unable to start activity ComponentInfo{co.yproject.bys/co.yproject.bys.beautyme.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.start()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2693) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.start()' on a null object reference at com.github.glomadrian.materialanimatedswitch.painter.BallPainter.setState(BallPainter.java:108) at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.setState(MaterialAnimatedSwitch.java:139) at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.doActionDown(MaterialAnimatedSwitch.java:164) at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.toggle(MaterialAnimatedSwitch.java:178)
I'm having the very same issue. has this been addressed?
com.github.glomadrian:MaterialAnimatedSwitch:1.1@aar
I got the same issue.
i got the same issue
compile 'com.github.glomadrian:MaterialAnimatedSwitch:1.1@aar'
maven { url "http://dl.bintray.com/glomadrian/maven" } add this both but my problem is not solve
Getting an error when calling .check(), unCheck();