DayNightToggleButton icon indicating copy to clipboard operation
DayNightToggleButton copied to clipboard

setChecked(false)

Open arnoldvakaria opened this issue 6 years ago • 2 comments

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 avatar May 30 '18 17:05 arnoldvakaria

@arnoldvakaria How to solve this bug? Thank You!

KotlinLan avatar Oct 06 '19 14:10 KotlinLan

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

arnoldvakaria avatar Dec 07 '19 21:12 arnoldvakaria