修改直播间展示ID
This commit is contained in:
parent
e04d277560
commit
f4b5cdfed3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user