From 4070c7717b7fa21292022d6cfb0ab20d764e76db Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 17 Oct 2022 17:46:30 +0800 Subject: [PATCH] =?UTF-8?q?add:=E7=9B=B4=E6=92=AD=E9=97=B4=E7=A7=81?= =?UTF-8?q?=E4=BF=A1=E6=82=AC=E6=B5=AE=E7=AA=97=E9=BB=98=E8=AE=A4=E9=9A=90?= =?UTF-8?q?=E8=97=8F=EF=BC=8C=E9=9A=8F=E6=8E=A5=E5=8F=A3=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 4 +++- live/src/main/res/layout/view_live_room.xml | 1 + 2 files changed, 4 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 943478030..0dc6ce3f6 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -717,7 +717,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) { msgLayout.setVisibility(View.GONE); } - + if(!IMLoginManager.get(mContext).hintChat()){ + msgLayout.setVisibility(View.VISIBLE); + } mHandler = new Handler() { @Override public void handleMessage(Message msg) { diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 1573027ca..45ed4716b 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -667,6 +667,7 @@ android:layout_height="48dp" android:layout_alignParentEnd="true" android:layout_marginEnd="0dp" + android:visibility="invisible" android:background="@drawable/bg_live_room_msg">