修复重进直播间不显示PK提示的问题

This commit is contained in:
zlzw 2022-11-22 14:28:29 +08:00
parent a9d323354b
commit dbba33f085

View File

@ -1534,7 +1534,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
}, Throwable::printStackTrace)
.isDisposed();
initPkRank();
}
private void initPkRankView(PkRankBean bean) {
@ -1611,7 +1610,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mPkRankText.setText(bean.getName());
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
if (StringUtil.isEmpty(bean.getPkTopImgUrl()) || StringUtil.isEmpty(isLadders)) {
if (StringUtil.isEmpty(bean.getPkTopImgUrl())) {
return;
}
if (!StringUtil.isEmpty(isLadders)) {
@ -1666,7 +1665,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
private void updatePkRank(PkRankBean bean) {
mPkRankText.setText(bean.getName());
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
initPkRank();
}
/**
@ -1950,6 +1948,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void run() {
goto_room_view.setVisibility(View.VISIBLE);
touid = touids;
pkUid=touids;
ImgLoader.displayAvatar(mContext, url, avatarOther);
tv_avatarOther_name.setText(name);
goto_room_view.setOnClickListener(new View.OnClickListener() {
@ -1958,6 +1957,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
showUserDialog(touids);
}
});
initPkRank();
}
}, 4000);//3秒后执行Runnable中的run方法