From 24e07db6e18b315610979c24bd37aeee37431a5f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 22 Sep 2022 14:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AF=86=E7=A0=81=E6=88=BF=E6=97=B6=E7=9A=84=E9=97=AA?= =?UTF-8?q?=E9=80=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java index be55d20c2..6de4ec229 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java @@ -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; } }