修复Ranking.getAnchorRankData多次调用问题
This commit is contained in:
parent
af8052f65b
commit
7b61e8c562
@ -2096,11 +2096,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
public void initPkRank(String isLadders) {
|
public void initPkRank(String isLadders) {
|
||||||
//PK状态下,pkuid不能为空
|
//PK状态下,pkuid不能为空
|
||||||
if (((LiveAudienceActivity) mContext).isPkStatus() && pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
|
if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//非PK状态下,第一次调用通过
|
//非PK状态下,第一次调用通过
|
||||||
if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid)) {
|
if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid) && StringUtil.isEmpty(pkUid)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pkRankLayout.setTag(mLiveUid);
|
pkRankLayout.setTag(mLiveUid);
|
||||||
|
Loading…
Reference in New Issue
Block a user