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" />