update 临时隐藏处罚通知入口

This commit is contained in:
zlzw 2024-08-16 14:33:57 +08:00
parent 3aeabfa32b
commit a25e22b142
2 changed files with 8 additions and 6 deletions

View File

@ -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<ResponseModel>() {
/*LiveNetManager.get(mContext).getPenalizeStatus(new com.yunbao.common.http.base.HttpCallback<ResponseModel>() {
@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);
}
});
});*/
}
//更新新消息

View File

@ -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" />
<TextView
android:id="@+id/tv_sys_msg_punish_notice"
android:layout_width="6dp"
android:layout_height="6dp"
android:background="@drawable/bg_red_yuan"
android:layout_alignTop="@+id/tv_sys_msg_punish"
android:layout_alignEnd="@id/tv_sys_msg_punish"
android:layout_marginTop="-1.5dp"
android:layout_marginEnd="-1.5dp"
android:visibility="gone" />
android:background="@drawable/bg_red_yuan"
android:visibility="gone"
tools:visibility="visible" />
</RelativeLayout>