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 ca2da5816..bdb341981 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1071,6 +1071,28 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } + public void resetView() { + goto_room_view.setVisibility(View.GONE); + if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) { + msgLayout.setVisibility(View.GONE); + } + if (!IMLoginManager.get(mContext).hintChat()) { + msgLayout.setVisibility(View.VISIBLE); + } + if (LivePushTxViewHolder.mTRTCCloud != null || LivePushRyViewHolder.rtcRoom != null) { + fans_btn.setVisibility(View.GONE); + } + mPkRankTopIcon.setVisibility(View.GONE); + lt_pk_line.setVisibility(View.GONE); + time.setVisibility(View.GONE); + mBannerList1.clear(); + mBannerList2.clear(); + mBannerList3.clear(); + mBannerList4.clear(); + updataCleanMic(); + + } + public void clearChat() { if (mLiveChatAdapter != null) { mLiveChatAdapter.clear(); @@ -1512,7 +1534,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } private void initPkRankView() { - if(pkRankVf.getTag()!=null){ + if (pkRankVf.getTag() != null) { return; } LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(20), DpUtil.dp2px(22)); diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index c0b64f482..79a0eef94 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -265,6 +265,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mask.setVisibility(View.VISIBLE); mLivePlayViewHolder.setCover(data.getThumb()); mLivePlayViewHolder.play(data.getPull()); + mLiveRoomViewHolder.resetView(); mLiveRoomViewHolder.clearChat(); mLiveRoomViewHolder.setAvatar(data.getAvatar()); mLiveRoomViewHolder.setAnchorLevel(data.getLevelAnchor());