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

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 -> {
if (isSelectPublic) {
LiveRoomTypeBean bean = new LiveRoomTypeBean(0, WordUtil.getString(R.string.live_room_public));
mCallback.callback(bean);
if(mCallback!=null) {
mCallback.callback(bean);
}
} else {
for (LiveRoomTypeBean bean : mList) {
if (bean.getId() == Constants.LIVE_TYPE_PWD) {
bean.setChecked(true);
mCallback.callback(bean);
if(mCallback!=null) {
mCallback.callback(bean);
}
break;
}
}