From f4b5cdfed328b64dd9e2f2d1f078e570227e8ea9 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 2 Jun 2023 13:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E5=B1=95=E7=A4=BAID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/views/LiveRoomViewHolder.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 3d1172b2c..7b8e9beee 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2478,7 +2478,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis */ public void setRoomNum(String roomNum) { if (mID != null) { - mID.setText(String.format("ID:%s", roomNum)); + if (roomNum.contains("ID")){ + mID.setText(roomNum); + }else { + mID.setText(String.format("ID:%s", roomNum)); + } + } } @@ -3678,7 +3683,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void setAnchorGoodNumber(String goodNumber) { if (!StringUtil.isEmpty(goodNumber) && !goodNumber.equals("0")) { mAnchorLayout.setBackgroundResource(R.drawable.bg_live_anchor_goodnum); - mID.setText(String.format("ID:%s", goodNumber)); + + if (goodNumber.contains("ID")){ + mID.setText(goodNumber); + }else { + mID.setText(String.format("ID:%s", goodNumber)); + } mGoodNumberIcon.setVisibility(View.VISIBLE); } }