From 81933f0ad73aa9469297ac2c3b98c5be00f1f380 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 28 Oct 2022 15:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B4=BB=E5=8A=A8Banner?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=A1=86=E4=B8=8D=E6=B6=88=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/views/LiveRoomViewHolder.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 6fea47448..a40904be1 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -3021,26 +3021,22 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis Bus.get().post(new LiveAudienceEvent() .setActivity(true) .setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION)); - new Handler(Looper.getMainLooper()).postDelayed(() -> { - loadingDialog.dismiss(); - loadingDialog = null; - }, 300); } else if (bean.getActivityId() == 0) { openWebDialog(bean.getLink()); } else { LiveGameDialogFragment fragment = new LiveGameDialogFragment("1".equals(bean.getShow_type())); fragment.setActivityId(bean.getActivityId()); fragment.setRoomId(mLiveUid); - fragment.setShowListener(dialog1 -> { - new Handler(Looper.getMainLooper()).postDelayed(() -> { - loadingDialog.dismiss(); - loadingDialog = null; - }, 300); - }); fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment"); } }); loadingDialog.show(); + new Handler(Looper.getMainLooper()).postDelayed(() -> { + if (loadingDialog != null && loadingDialog.isShowing()) { + loadingDialog.dismiss(); + } + loadingDialog = null; + }, 300); }