From dbba33f085b67b180c128b5dda46c903d84ee7f5 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 22 Nov 2022 14:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E8=BF=9B=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E4=B8=8D=E6=98=BE=E7=A4=BAPK=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index a96375ebd..74eaf8a0c 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -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方法