From c53757c64bc185e37b1fc3beb9d17a44b2316bab Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 6 Jun 2023 14:41:53 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=B0=83=E6=95=B4WebView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/layout/activity_webview.xml | 1 + .../main/java/com/yunbao/main/activity/ZhuangBanActivity.java | 1 + 2 files changed, 2 insertions(+) diff --git a/common/src/main/res/layout/activity_webview.xml b/common/src/main/res/layout/activity_webview.xml index 0f10ea7e6..ec83eebe4 100644 --- a/common/src/main/res/layout/activity_webview.xml +++ b/common/src/main/res/layout/activity_webview.xml @@ -67,5 +67,6 @@ \ No newline at end of file diff --git a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java index b746da228..938f95910 100644 --- a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java @@ -102,6 +102,7 @@ public class ZhuangBanActivity extends AbsActivity { mWebView = new WebView(mContext); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); params.topMargin = DpUtil.dp2px(1); + params.bottomMargin = DpUtil.dp2px(15); mWebView.setLayoutParams(params); mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER); rootView.addView(mWebView); From f4016089a1393b8af829dba050da10e999df0881 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Tue, 6 Jun 2023 15:28:00 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E8=B5=84=E6=96=99=E5=92=8C=E7=A4=BC=E7=89=A9=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.gradle | 8 ++++---- .../com/yunbao/live/activity/LiveAudienceActivity.java | 3 +-- .../com/yunbao/live/dialog/LiveGiftDialogFragment.java | 10 +++++++++- live/src/main/res/layout/dialog_live_gift_wrap.xml | 3 +++ 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/config.gradle b/config.gradle index 62d6c7e7c..a3a252701 100644 --- a/config.gradle +++ b/config.gradle @@ -4,14 +4,14 @@ ext { buildToolsVersion: "29.0.2", minSdkVersion : 21, targetSdkVersion : 31, - versionCode : 423, + versionCode : 424, versionName : "6.5.2" ] manifestPlaceholders = [ //正式、 - serverHost : "https://napi.yaoulive.com", +// serverHost : "https://napi.yaoulive.com", // 测试 -// serverHost : "https://ceshi.yaoulive.com", + serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", @@ -26,6 +26,6 @@ ext { // true表示谷歌支付 false isGooglePlay : false, //是否上报异常日志 - isUploadLog : false + isUploadLog : true ] } \ No newline at end of file diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index 16e6029e9..1bbc86181 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -861,8 +861,7 @@ public class LiveAudienceActivity extends LiveActivity { if (TextUtils.equals(htmlUrl, "recharge")) { RouteUtil.forwardMyCoin(mContext); } else if (TextUtils.equals(htmlUrl, "to_me_information")) { - onBackPressed(); - Constants.isShowPage = 3; + RouteUtil.forwardEditProfileActivity(); } else { if (!screen) { ZhuangBanActivity.forward(mContext, htmlUrl, false); diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java index 72e2b8901..7b06cd904 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java @@ -154,7 +154,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On DialogInterface.OnDismissListener onDismissListener; DialogInterface.OnShowListener onShowListener; private SVGAImageView blindSvga, blindBoxOpen; - + private View close_view; @Override protected int getLayoutId() { return R.layout.dialog_live_gift_wrap; @@ -316,6 +316,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On description = mRootView.findViewById(R.id.description); mVipGoldTitle = mRootView.findViewById(R.id.vipGoldTitle); mVipGoldDesc = mRootView.findViewById(R.id.vipGoldDesc); + close_view = mRootView.findViewById(R.id.close_view); mVipGold.setOnClickListener(this); mGiftPackage = mRootView.findViewById(R.id.btn_gift_package); blindNumber = mRootView.findViewById(R.id.blind_number); @@ -323,6 +324,12 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On textBlindGiftName = mRootView.findViewById(R.id.text_blind_gift_name); mGiftPackage.setOnClickListener(this); mRootView.findViewById(R.id.live_gift_download_all).setOnClickListener(this); + close_view.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + dismiss(); + } + }); mHandler = new Handler() { @Override public void handleMessage(Message msg) { @@ -1258,3 +1265,4 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On }; } + diff --git a/live/src/main/res/layout/dialog_live_gift_wrap.xml b/live/src/main/res/layout/dialog_live_gift_wrap.xml index fa39f0cff..36ce0ea3e 100644 --- a/live/src/main/res/layout/dialog_live_gift_wrap.xml +++ b/live/src/main/res/layout/dialog_live_gift_wrap.xml @@ -6,6 +6,7 @@ android:orientation="vertical"> Date: Thu, 8 Jun 2023 10:12:37 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E8=B5=84=E6=96=99=E5=92=8C=E7=A4=BC=E7=89=A9=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.gradle | 6 ++--- .../live/activity/LiveRyAnchorActivity.java | 27 ++++++++++++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/config.gradle b/config.gradle index a3a252701..44a5734bc 100644 --- a/config.gradle +++ b/config.gradle @@ -4,14 +4,14 @@ ext { buildToolsVersion: "29.0.2", minSdkVersion : 21, targetSdkVersion : 31, - versionCode : 424, + versionCode : 428, versionName : "6.5.2" ] manifestPlaceholders = [ //正式、 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", // 测试 - serverHost : "https://ceshi.yaoulive.com", +// serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", diff --git a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java index 94e131085..e6c2fcfe2 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java @@ -1467,14 +1467,29 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl @Override public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) { - if (event!=null){ - //插入盲盒礼物消息 - bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX); - bean.getLiveChatBean().setContent(event.getGiftMsg()); - bean.getLiveChatBean().setGiftName(event.getGiftname()); - bean.getLiveChatBean().setUserNiceName(event.getUserNiceName()); + if (event != null) { + LiveChatBean liveChatBean = null; + if (!TextUtils.isEmpty(event.isBlindBoxStatus()) && TextUtils.equals(event.isBlindBoxStatus(), "true")) { + if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) { + liveChatBean = new LiveChatBean(); + liveChatBean.setUserNiceName(event.getUserNiceName()); + liveChatBean.setType(LiveChatBean.BLIND_BOX); + liveChatBean.setGiftName(event.getDressName()); + liveChatBean.setContent(event.getDressMsg()); + } + //插入盲盒礼物消息 + bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX); + bean.getLiveChatBean().setContent(event.getGiftMsg()); + bean.getLiveChatBean().setGiftName(event.getGiftname()); + bean.getLiveChatBean().setUserNiceName(event.getUserNiceName()); + } + + if (mLiveRoomViewHolder != null) { if (bean.getmLiveUId().equals(bean.getRoomnum())) { + if (liveChatBean != null) { + mLiveRoomViewHolder.insertChat(liveChatBean, 1); + } mLiveRoomViewHolder.insertChat(bean.getLiveChatBean(), 1); } mLiveRoomViewHolder.showGiftMessage(bean, false); From 8d077e80626f7f7b4e1307ad406ab733c80e9ef9 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Jun 2023 11:13:38 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPK=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E9=9A=90=E8=97=8F=E6=8A=95=E7=A5=A8=E9=97=AE?= =?UTF-8?q?=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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 7b8e9beee..248413bec 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1486,7 +1486,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis msgLayout.setVisibility(View.VISIBLE); } AppManager.runDebugCode(() -> msgLayout.setVisibility(View.GONE)); - voteManager.hide(); if (d_pk_view != null) { d_pk_view.setVisibility(View.GONE); } @@ -4650,6 +4649,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mHandler.removeMessages(WHAT_PK_TIME); } isShowGif = false; + if(voteManager!=null){ + voteManager.hide(); + } } /** From f3a0b4d1455c1b219b45f6585bca72ecd0fcd41e Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Jun 2023 14:20:15 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRanking.getAnchorRankData?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=B0=83=E7=94=A8=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 | 3 +++ 1 file changed, 3 insertions(+) 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 248413bec..7d83cdb57 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2092,6 +2092,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } public void initPkRank(String isLadders) { + if(StringUtil.isEmpty(pkUid)){ + return; + } pkRankLayout.setVisibility(View.GONE); new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1); mRedVal.setVisibility(View.GONE); From 6603a2dbb599d7aa42708d9ff7f29e84055fff69 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Jun 2023 14:33:44 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRanking.getAnchorRankData?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=B0=83=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/views/LiveRoomViewHolder.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 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 7d83cdb57..eed4c69ac 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1506,6 +1506,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void resetView() { resetViewGone(); visibility = false; + pkUidTmp = ""; mBannerList1.clear(); mBannerList2.clear(); mBannerList3.clear(); @@ -2091,10 +2092,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis initPkRank(null); } + private String pkUidTmp =""; + public void initPkRank(String isLadders) { - if(StringUtil.isEmpty(pkUid)){ + if (pkUidTmp.equals(pkUid)) { return; } + pkUidTmp=pkUid; pkRankLayout.setVisibility(View.GONE); new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1); mRedVal.setVisibility(View.GONE); @@ -2140,6 +2144,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis liveRankPk2.setVisibility(View.VISIBLE); mPkRankText.setText(bean.getName()); ImgLoader.display(mContext, bean.getImg(), mPkRankIcon); + pkUidTmp = ""; if (StringUtil.isEmpty(bean.getPkTopImgUrl())) { return; } @@ -2162,6 +2167,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis @Override public void onError(String error) { ToastUtil.show(R.string.net_error); + pkUidTmp = ""; } }); @@ -2480,9 +2486,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis */ public void setRoomNum(String roomNum) { if (mID != null) { - if (roomNum.contains("ID")){ + if (roomNum.contains("ID")) { mID.setText(roomNum); - }else { + } else { mID.setText(String.format("ID:%s", roomNum)); } @@ -3686,9 +3692,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (!StringUtil.isEmpty(goodNumber) && !goodNumber.equals("0")) { mAnchorLayout.setBackgroundResource(R.drawable.bg_live_anchor_goodnum); - if (goodNumber.contains("ID")){ + if (goodNumber.contains("ID")) { mID.setText(goodNumber); - }else { + } else { mID.setText(String.format("ID:%s", goodNumber)); } mGoodNumberIcon.setVisibility(View.VISIBLE); @@ -4652,7 +4658,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mHandler.removeMessages(WHAT_PK_TIME); } isShowGif = false; - if(voteManager!=null){ + if (voteManager != null) { voteManager.hide(); } } From af8052f65b07e603c894e7b6c833966ab0a4dc26 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Jun 2023 15:21:24 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRanking.getAnchorRankData?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=B0=83=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/views/LiveRoomViewHolder.java | 14 ++++++++++---- .../com/yunbao/live/views/PortraitLiveManager.java | 1 + 2 files changed, 11 insertions(+), 4 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 eed4c69ac..9d1b73c82 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -341,7 +341,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis private TextView mPkRankText; private ImageView mPkRankTopIcon; private TextView mRedVal, mBlueVal; - private String pkUid = ""; + public String pkUid = ""; //接口整合新加参数 private GuardUserModel guardUserModel; @@ -2092,13 +2092,19 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis initPkRank(null); } - private String pkUidTmp =""; + private String pkUidTmp = ""; public void initPkRank(String isLadders) { - if (pkUidTmp.equals(pkUid)) { + //PK状态下,pkuid不能为空 + if (((LiveAudienceActivity) mContext).isPkStatus() && pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) { return; } - pkUidTmp=pkUid; + //非PK状态下,第一次调用通过 + if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid)) { + return; + } + pkRankLayout.setTag(mLiveUid); + pkUidTmp = pkUid; pkRankLayout.setVisibility(View.GONE); new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1); mRedVal.setVisibility(View.GONE); 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 13d5fe08b..2c7b5fd27 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -594,6 +594,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe } else if (!pkInfo.getString("end_pk_time").equals("0")) { if (mLiveRoomViewHolder != null) { mLiveRoomViewHolder.pkHandler = true; + mLiveRoomViewHolder.pkUid=pkUid; mLiveRoomViewHolder.initPkRank(null); } if (mLivePlayViewHolder != null) { From 23a396864f3cb4c8a5b912e5d40ad0a117b2d4da Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Thu, 8 Jun 2023 17:02:11 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=A8=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/presenter/LiveGiftAnimPresenter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java index 9cabe9fed..f0e3bfa81 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java @@ -335,7 +335,7 @@ public class LiveGiftAnimPresenter { public void onClick(View view) { //切换直播间 - if (TextUtils.equals(mIvLook.getText().toString(),mContext.getString(R.string.participate_in))) { + if (TextUtils.equals(mIvLook.getText().toString(), mContext.getString(R.string.participate_in))) { new Handler().postDelayed(new Runnable() { @Override public void run() { @@ -882,6 +882,10 @@ public class LiveGiftAnimPresenter { params.topMargin = DpUtil.dp2px(y); mGifGiftTipGroupAllServer.setLayoutParams(params); } + bgAllServer.setBackgroundResource(R.drawable.bg_live_gift_tip); + mIvLook.setBackgroundResource(R.drawable.bg_all_server_icon); + superNotice.setBackgroundResource(R.mipmap.super_notice); + mIvLook.setText(R.string.live_onlookers); mAncherName = mTempGifGiftBean.getAncherName(); mGifGiftTipAllServer.setSelected(false); mGifGiftTipGroupAllServer.setAlpha(1f); From 7b61e8c5620f7fe7553675b9fdbc38776ea2e493 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Jun 2023 17:02:20 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRanking.getAnchorRankData?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=B0=83=E7=94=A8=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 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 9d1b73c82..9117747d5 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2096,11 +2096,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void initPkRank(String isLadders) { //PK状态下,pkuid不能为空 - if (((LiveAudienceActivity) mContext).isPkStatus() && pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) { + if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) { return; } //非PK状态下,第一次调用通过 - if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid)) { + if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid) && StringUtil.isEmpty(pkUid)) { return; } pkRankLayout.setTag(mLiveUid);