From f30215591237e1806daf6f5f6810b6ef9e9dadbb Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 14 Dec 2022 11:37:00 +0800 Subject: [PATCH] =?UTF-8?q?update=20Pk=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/adapter/FreePkRecyclerAdapter.java | 5 ++++- .../java/com/yunbao/live/dialog/FreePkDialogFragment.java | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/FreePkRecyclerAdapter.java b/live/src/main/java/com/yunbao/live/adapter/FreePkRecyclerAdapter.java index a50387dcd..93a0c7762 100644 --- a/live/src/main/java/com/yunbao/live/adapter/FreePkRecyclerAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/FreePkRecyclerAdapter.java @@ -24,11 +24,14 @@ import com.yunbao.live.http.LiveHttpUtil; import java.util.Arrays; +/** + * 单人PK/多人PK邀请的对话框适配器 + */ public class FreePkRecyclerAdapter extends RefreshAdapter { private static final int HEAD = 0; private static final int ITEM = 2; private int freePkNum;//PK次数 - private int mDrPkNum = -1; + private int mDrPkNum = -1;//多人PK剩余次数,为-1则认为是单人PK public void setFreePkNum(int freePkNum) { this.freePkNum = freePkNum; diff --git a/live/src/main/java/com/yunbao/live/dialog/FreePkDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/FreePkDialogFragment.java index 4ff6a8c91..a52e33fb1 100644 --- a/live/src/main/java/com/yunbao/live/dialog/FreePkDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/FreePkDialogFragment.java @@ -37,7 +37,7 @@ import java.util.Arrays; import java.util.List; /** - * 自由PK + * 自由PK/多人PK邀请对话框 */ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnClickListener { private static final int TAB_STATUS_SEARCH = 1; @@ -55,7 +55,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl private FreePkRecyclerAdapter adapter; private DataHelper helper; private int tabStatus; - private int mDrPkNum = -1; + private int mDrPkNum = -1;//多人PK剩余次数,为-1时认为是单人PK @Override