From 06e077146b42f9c25f82bd434bf73d918e89951d Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 13 Apr 2023 17:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/views/LiveRoomViewHolder.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 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 3ec9c6cc6..7e8949b35 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -4533,6 +4533,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis showUserDialog(userId3); } }); + } private Runnable countdownRunnable = new Runnable() { @@ -4545,11 +4546,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis countdownHandler.postAtTime(countdownRunnable, getNextSecondTime()); hideAnchorSayAndCallAnchor(); } else { + mPkTimeCount = 0; + showAnchorSayAndCallAnchor(); timeTitle.setVisibility(View.GONE); countdownHandler.removeCallbacks(countdownRunnable); Bus.get().post(new LiveAudienceEvent() .setType(LiveAudienceEvent.LiveAudienceType.PK_TIME_COUNT)); - showAnchorSayAndCallAnchor(); } } }; @@ -4559,6 +4561,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mRoot.removeView(detailsView); detailsView = null; } + mPkTimeCount = 0; + showAnchorSayAndCallAnchor(); } /** @@ -4739,14 +4743,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void hideAnchorSayAndCallAnchor() { mAnchorSay.setVisibility(View.GONE); + topBanner2.setVisibility(View.VISIBLE); topBanner1.setVisibility(View.GONE); - if (topBanner1.getVisibility() == View.GONE && mTopBannerList != null && !mTopBannerList.isEmpty()) { - Log.i("女神说", "mTopBannerList: " + mTopBannerList.size()); - for (BannerBean bean : mTopBannerList) { - Log.i("女神说", "BannerBean: " + bean); - } - topBanner2.setVisibility(View.VISIBLE); - } } public void showAnchorSayAndCallAnchor() {