修复Ranking.getAnchorRankData多次调用问题

This commit is contained in:
zlzw 2023-06-08 17:02:20 +08:00
parent af8052f65b
commit 7b61e8c562

View File

@ -2096,11 +2096,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void initPkRank(String isLadders) {
//PK状态下pkuid不能为空
if (((LiveAudienceActivity) mContext).isPkStatus() && pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
return;
}
//非PK状态下第一次调用通过
if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid)) {
if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid) && StringUtil.isEmpty(pkUid)) {
return;
}
pkRankLayout.setTag(mLiveUid);