修复一处设置密码房时的闪退问题
This commit is contained in:
parent
fa12ce88d7
commit
24e07db6e1
@ -82,12 +82,16 @@ public class LiveNewRoomTypeDialogFragment extends AbsDialogFragment implements
|
|||||||
submit.setOnClickListener(view -> {
|
submit.setOnClickListener(view -> {
|
||||||
if (isSelectPublic) {
|
if (isSelectPublic) {
|
||||||
LiveRoomTypeBean bean = new LiveRoomTypeBean(0, WordUtil.getString(R.string.live_room_public));
|
LiveRoomTypeBean bean = new LiveRoomTypeBean(0, WordUtil.getString(R.string.live_room_public));
|
||||||
mCallback.callback(bean);
|
if(mCallback!=null) {
|
||||||
|
mCallback.callback(bean);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (LiveRoomTypeBean bean : mList) {
|
for (LiveRoomTypeBean bean : mList) {
|
||||||
if (bean.getId() == Constants.LIVE_TYPE_PWD) {
|
if (bean.getId() == Constants.LIVE_TYPE_PWD) {
|
||||||
bean.setChecked(true);
|
bean.setChecked(true);
|
||||||
mCallback.callback(bean);
|
if(mCallback!=null) {
|
||||||
|
mCallback.callback(bean);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user