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

Calling check(item.id) causes twice listener change state calling #96

Open
Duna opened this issue Jun 28, 2019 · 1 comment
Open

Calling check(item.id) causes twice listener change state calling #96

Duna opened this issue Jun 28, 2019 · 1 comment

Comments

@Duna
Copy link

Duna commented Jun 28, 2019

Calling programmatically the method check(item.id) causes double trigger of the listener set for
setOnCheckedChangeListener(...)

@Duna Duna changed the title Calling check(item.id) causes double Calling check(item.id) causes twice listener change state calling Jun 28, 2019
@patuoynageek
Copy link

Had the same issue, workaround I used for this is:

//segmentedGroup.check(R.id.radioButton); //calls listener twice
radioButton.performClick(); //calls listener once

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