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); } }