修复一处设置密码房时的闪退问题

This commit is contained in:
zlzw 2022-09-22 14:23:31 +08:00
parent fa12ce88d7
commit 24e07db6e1

View File

@ -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;
} }
} }