문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top