6.8.0:天梯赛数据不显示bug修复

This commit is contained in:
余前卫 2024-07-27 15:15:37 +08:00
parent 79c730c1b7
commit 6af48002bb
4 changed files with 18 additions and 6 deletions

View File

@ -879,10 +879,14 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
getAiRobotStatus();
MicedUserManager.get().removeAllMicUserList();
MicUserManager.get().removeAllMicUserList();
//加载整蛊
if(mLiveRoomViewHolder!=null){
//加载整蛊
mLiveRoomViewHolder.initPrankProgress(2);
mLiveRoomViewHolder.sendMsgPrank();
//初始化天梯数据
mLiveRoomViewHolder.initRankPKInfo(mLiveUid,"");
}
}

View File

@ -874,10 +874,14 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
getAiRobotStatus();
MicedUserManager.get().removeAllMicUserList();
MicUserManager.get().removeAllMicUserList();
//加载整蛊
if(mLiveRoomViewHolder!=null){
//加载整蛊
mLiveRoomViewHolder.initPrankProgress(2);
mLiveRoomViewHolder.sendMsgPrank();
//初始化天梯数据
mLiveRoomViewHolder.initRankPKInfo(mLiveUid,"");
}
mLiveSwLinkMicPkPresenter.setmLiveRoomViewHolder(mLiveRoomViewHolder);
}

View File

@ -2887,10 +2887,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
private void initPkRankView(PkRankBean bean) {
if (pkRankVf.getTag() != null) {
return;
}
//因为需要初始化就设置值所以不设置tag可以更新数据
// if (pkRankVf.getTag() != null) {
// return;
// }
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(20), DpUtil.dp2px(22));
LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
params.leftMargin = DpUtil.dp2px(3);

View File

@ -816,6 +816,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
isShowPrank = false;
}else {
//初始化天梯赛数据(不在pk过程中)
mLiveRoomViewHolder.initRankPKInfo(mLiveUid,"");
}
if (data.getEnterRoomInfo().getGuard() != null) {
if (mLiveRoomViewHolder != null) {
@ -902,6 +905,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
}
//初始化整蠱列表
mLiveRoomViewHolder.initPrankProgress(isShowPrank?1:2);
}
@Override