From dc8f32062cac41838851f117fc3a37ce53dc5225 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 16 Nov 2022 15:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=91=E5=8A=A8=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=EF=BC=8C=E9=83=A8=E5=88=86UI=E6=9C=AA?= =?UTF-8?q?=E8=BF=98=E5=8E=9F=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 | 24 ++++++++++++++++++- .../live/views/PortraitLiveManager.java | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) 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());