修复重进直播间不显示PK提示的问题
This commit is contained in:
parent
a9d323354b
commit
dbba33f085
@ -1534,7 +1534,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
}, Throwable::printStackTrace)
|
}, Throwable::printStackTrace)
|
||||||
.isDisposed();
|
.isDisposed();
|
||||||
initPkRank();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initPkRankView(PkRankBean bean) {
|
private void initPkRankView(PkRankBean bean) {
|
||||||
@ -1611,7 +1610,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
mPkRankText.setText(bean.getName());
|
mPkRankText.setText(bean.getName());
|
||||||
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
||||||
if (StringUtil.isEmpty(bean.getPkTopImgUrl()) || StringUtil.isEmpty(isLadders)) {
|
if (StringUtil.isEmpty(bean.getPkTopImgUrl())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!StringUtil.isEmpty(isLadders)) {
|
if (!StringUtil.isEmpty(isLadders)) {
|
||||||
@ -1666,7 +1665,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
private void updatePkRank(PkRankBean bean) {
|
private void updatePkRank(PkRankBean bean) {
|
||||||
mPkRankText.setText(bean.getName());
|
mPkRankText.setText(bean.getName());
|
||||||
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
||||||
initPkRank();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1950,6 +1948,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
public void run() {
|
public void run() {
|
||||||
goto_room_view.setVisibility(View.VISIBLE);
|
goto_room_view.setVisibility(View.VISIBLE);
|
||||||
touid = touids;
|
touid = touids;
|
||||||
|
pkUid=touids;
|
||||||
ImgLoader.displayAvatar(mContext, url, avatarOther);
|
ImgLoader.displayAvatar(mContext, url, avatarOther);
|
||||||
tv_avatarOther_name.setText(name);
|
tv_avatarOther_name.setText(name);
|
||||||
goto_room_view.setOnClickListener(new View.OnClickListener() {
|
goto_room_view.setOnClickListener(new View.OnClickListener() {
|
||||||
@ -1958,6 +1957,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
showUserDialog(touids);
|
showUserDialog(touids);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
initPkRank();
|
||||||
}
|
}
|
||||||
}, 4000);//3秒后执行Runnable中的run方法
|
}, 4000);//3秒后执行Runnable中的run方法
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user