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