修复LiveGiftDialogFragment一处空指针异常问题
This commit is contained in:
parent
e108494bd5
commit
c1aeaa0e1b
@ -208,7 +208,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
||||
|
||||
@Override
|
||||
public void onPageSelected(int position) {
|
||||
if (mRadioGroup != null) {
|
||||
if (mRadioGroup != null && mRadioGroup.getChildAt(position)!=null) {
|
||||
((RadioButton) mRadioGroup.getChildAt(position)).setChecked(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user