add:直播间私信悬浮窗默认隐藏,随接口判断是否显示

This commit is contained in:
zlzw 2022-10-17 17:46:30 +08:00
parent 09f74c3881
commit 4070c7717b
2 changed files with 4 additions and 1 deletions

View File

@ -717,7 +717,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) { if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) {
msgLayout.setVisibility(View.GONE); msgLayout.setVisibility(View.GONE);
} }
if(!IMLoginManager.get(mContext).hintChat()){
msgLayout.setVisibility(View.VISIBLE);
}
mHandler = new Handler() { mHandler = new Handler() {
@Override @Override
public void handleMessage(Message msg) { public void handleMessage(Message msg) {

View File

@ -667,6 +667,7 @@
android:layout_height="48dp" android:layout_height="48dp"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:visibility="invisible"
android:background="@drawable/bg_live_room_msg"> android:background="@drawable/bg_live_room_msg">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout