Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i set checked without callback? #45

Closed
531227501 opened this issue Apr 26, 2016 · 4 comments
Closed

how can i set checked without callback? #45

531227501 opened this issue Apr 26, 2016 · 4 comments

Comments

@531227501
Copy link

update 1.2.6
With calling the method setChecked(boolean, false);, you can change the status without invoking the listener.

there is the method setChecked(boolean, false) in the 1.2.6, but no longer in 1.4.0, so what should i do when i want to modify the check status whitout callback?

@531227501
Copy link
Author

@kyleduo is anyone here?

@kyleduo
Copy link
Owner

kyleduo commented Apr 26, 2016

SwitchButton in 1.4.0 observe the behavier of CheckBox so you need remove callback before you call setChecked() and set it back after that.

@531227501
Copy link
Author

OK, i will try the way, thanks.

@kyleduo kyleduo mentioned this issue Jun 2, 2016
kyleduo added a commit that referenced this issue Jun 2, 2016
#### Version 1.4.1

- fixed #49
- optimized #45 support operation without onCheckedChanged callback.
@kyleduo
Copy link
Owner

kyleduo commented Jun 3, 2016

New feature supported in version 1.4.1.

@kyleduo kyleduo closed this as completed Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants