From 6b1c223acdc12a45d45c7ba063ed1bfe3deaf6df Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 16 Nov 2022 13:38:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E5=90=8EPK?= =?UTF-8?q?=E4=B8=AD=E5=B1=8F=E8=94=BD=E6=9A=82=E6=97=B6=E7=A6=BB=E5=BC=80?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/activity/LiveRyAnchorActivity.java | 2 +- .../java/com/yunbao/live/views/LivePushRyViewHolder.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 c51d7a906..18749ed6a 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java @@ -535,7 +535,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl } bundle.putBoolean(Constants.HAS_GAME, hasGame); bundle.putInt("leave", leave); - bundle.putBoolean("isPk", isDRPK == 1 || PKing); + bundle.putBoolean("isPk", isDRPK == 1 || PKing || mLivePushViewHolder.isPking()); bundle.putBoolean(Constants.OPEN_FLASH, mLivePushViewHolder != null && mLivePushViewHolder.isFlashOpen()); fragment.setArguments(bundle); fragment.setFunctionClickListener(this); diff --git a/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java index fb22ab1b5..e25f4cca7 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java @@ -704,6 +704,13 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX } } + public boolean isPking() { + if (btn_close != null) { + return btn_close.getVisibility() == View.VISIBLE; + } + return false; + } + @Override public void onPause() { mPaused = true;