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"));