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)