周星榜数量修改

This commit is contained in:
ningwenqiang
2024-10-07 18:20:31 +08:00
parent 4f44278561
commit 76d24123a7
5 changed files with 41 additions and 10 deletions

View File

@@ -2800,7 +2800,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
//是否是主播
private boolean isAnchorLive() {
public boolean isAnchorLive() {
return mContext instanceof LiveRyAnchorActivity || mContext instanceof LiveSwAnchorActivity;
}

View File

@@ -864,7 +864,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
//红包相关
mLiveRoomViewHolder.setRedPackBtnVisible(Integer.parseInt(data.getEnterRoomInfo().getIsred()) == 1);
//礼物墙相关
mLiveRoomViewHolder.setGiftWall(data.getEnterRoomInfo().getGiftWallLightenNumber(), data.getEnterRoomInfo().getGiftWallLightenTotal());
if(mLiveRoomViewHolder.isAnchorLive()){
mLiveRoomViewHolder.setGiftWall(data.getEnterRoomInfo().getGiftWallLightenNumber(), data.getEnterRoomInfo().getGiftWallLightenTotal());
}else {
mLiveRoomViewHolder.setGiftWall(data.getEnterRoomInfo().getWeekStarGiftNum(), data.getEnterRoomInfo().getWeekGiftIlluminateNum());
}
}
//奖池等级