DayNightToggleButton
DayNightToggleButton copied to clipboard
setChecked(false)
In case of initialization if the checked is false, then it doesn't work correctly for the first click. Instead of toggle it will remain in the same status.
mToggleButton.setChecked(!isTurnedOn); - init with checked = false
@arnoldvakaria How to solve this bug? Thank You!
Sorry for the late response. Currently I'm not using your library, but as you can see if you initializing your toggle button with false value, then for the first click it should not work properly. If I remember correctly what I wrote to you that was the way how I fixed it