update Pk补充注释

This commit is contained in:
zlzw 2022-12-14 11:37:00 +08:00
parent 3d60814538
commit f302155912
2 changed files with 6 additions and 3 deletions

View File

@ -24,11 +24,14 @@ import com.yunbao.live.http.LiveHttpUtil;
import java.util.Arrays;
/**
* 单人PK/多人PK邀请的对话框适配器
*/
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
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;

View File

@ -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