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() {