Question

I have 4 RadioButtons in a RadioGroup. The RadioButtons have the same instance of OnCheckedChangedListener set. When any of the RadioButton is selected a dialog is popped up after 800ms using a handler. The problem is, sometimes any of the RadioButtons remains unchecked even after the checked state is changed, but the dialog pops up. I suspect this to be a bug. Any pointers will be greatly appreciated.

Was it helpful?

Solution

Instead of calling RadioButton.setChecked() for every individual instance I called RadioGroup.clearChecked(), this seemed to solve my problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top