From a25e22b1429ad11972b649862a9ac6f5cd2e0e54 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 16 Aug 2024 14:33:57 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=B4=E6=97=B6=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=A4=84=E7=BD=9A=E9=80=9A=E7=9F=A5=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/activity/SystemMessageActivity.java | 6 +++--- live/src/main/res/layout/view_sys_msg.xml | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/activity/SystemMessageActivity.java b/live/src/main/java/com/yunbao/live/activity/SystemMessageActivity.java index 03d9d07f3..cf0100eb1 100644 --- a/live/src/main/java/com/yunbao/live/activity/SystemMessageActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/SystemMessageActivity.java @@ -72,7 +72,7 @@ public class SystemMessageActivity extends AbsActivity { // } init(); punish = findViewById(R.id.tv_sys_msg_punish); - punish.setVisibility(View.VISIBLE); + punish.setVisibility(View.GONE); punishNotice = findViewById(R.id.tv_sys_msg_punish_notice); punish.setOnClickListener(v -> { RouteUtil.forwardPunishActivity(); @@ -85,7 +85,7 @@ public class SystemMessageActivity extends AbsActivity { finish(); } }); - LiveNetManager.get(mContext).getPenalizeStatus(new com.yunbao.common.http.base.HttpCallback() { + /*LiveNetManager.get(mContext).getPenalizeStatus(new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(ResponseModel responseModel) { punishNotice.setVisibility(View.VISIBLE); @@ -95,7 +95,7 @@ public class SystemMessageActivity extends AbsActivity { public void onError(String error) { punishNotice.setVisibility(View.GONE); } - }); + });*/ } //更新新消息 diff --git a/live/src/main/res/layout/view_sys_msg.xml b/live/src/main/res/layout/view_sys_msg.xml index cc30fbe79..9763cd3d2 100644 --- a/live/src/main/res/layout/view_sys_msg.xml +++ b/live/src/main/res/layout/view_sys_msg.xml @@ -56,18 +56,20 @@ android:text="@string/live_end_view_ban_punish_title" android:textColor="@color/colorWhite" android:textSize="12sp" - android:visibility="visible" /> + android:visibility="gone" + tools:visibility="visible" /> + android:background="@drawable/bg_red_yuan" + android:visibility="gone" + tools:visibility="visible" />