From 4ad75a11a8cfb944614d44134d2e70ec341ec817 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 8 Dec 2022 18:14:13 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=9A=8F=E6=9C=BAPK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/dialog/RandomPkDialogFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java index 93f4058e9..72ab30e93 100644 --- a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java @@ -137,7 +137,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On mPkBtnDesc.setText(R.string.random_pk_info_btn_end_desc); mPkBtnDesc.setVisibility(View.VISIBLE); mPkBtn.setBackgroundResource(R.drawable.bg_live_room_random_pk_timer); - }else if(RandomPkManager.getInstance().isExiting()){ + } else if (RandomPkManager.getInstance().isExiting()) { mPkBtnTitle.setText(String.format(WordUtil.getString(R.string.random_pk_info_btn_end), RandomPkManager.getInstance().getExitTimer())); mPkBtnDesc.setText(R.string.random_pk_info_btn_end_desc); mPkBtn.setEnabled(false); @@ -188,6 +188,9 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On * @param pk 1=on,0=off */ private void setPkSwitch(int pk) { + if (RandomPkManager.getInstance().isRequestPk() || RandomPkManager.getInstance().isExiting()) { + return; + } loadDialog = DialogUitl.loadingDialog(mContext); loadDialog.show(); LiveNetManager.get(mContext)