From 1853acd5ebd7a9c82667c52a1db256742e59dbe7 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 26 Nov 2022 11:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=85=8D=E4=BD=8D=E8=B5=9B=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/views/PortraitLiveManager.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 886b3fffc..da036bbd1 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -441,16 +441,24 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe } mLiveRyLinkMicPkPresenter.onEnterRoomPkStart(pkUid, pkInfo.getLongValue("pk_gift_liveuid"), pkInfo.getLongValue("pk_gift_pkuid"), pkInfo.getIntValue("pk_time"), livePKUserListBean); } else if (!pkInfo.getString("end_pk_time").equals("0")) { - + if (mLiveRoomViewHolder != null) { + mLiveRoomViewHolder.initPkRank(null); + } LivePlayRyViewHolder.setViewUP(3); //pk排名数据 LivePKUserListBean livePKUserListBean = JSON.parseObject(pkInfo.getString("pk_top_users"), LivePKUserListBean.class); mLiveRyLinkMicPkPresenter.onEnterRoomCFStart(pkUid, pkInfo.getLongValue("pk_gift_liveuid"), pkInfo.getLongValue("pk_gift_pkuid"), pkInfo.getIntValue("end_pk_time"), livePKUserListBean); + }else{ + if (mLiveRoomViewHolder != null) { + mLiveRoomViewHolder.initPkRank(null); + } } //多人PK } else if (pkInfo != null && pkInfo.getIntValue("drpk_status") == 1) { - + if (mLiveRoomViewHolder != null) { + mLiveRoomViewHolder.initPkRank(null); + } LivePlayRyViewHolder.setViewUP(4); mLiveRoomViewHolder.UpPkBar(pkInfo.getJSONArray("userlist"), mLiveBean.getUid(), pkInfo.getIntValue("drpk_time"));