update Pk补充注释
This commit is contained in:
parent
3d60814538
commit
f302155912
@ -24,11 +24,14 @@ import com.yunbao.live.http.LiveHttpUtil;
|
|||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单人PK/多人PK邀请的对话框适配器
|
||||||
|
*/
|
||||||
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
||||||
private static final int HEAD = 0;
|
private static final int HEAD = 0;
|
||||||
private static final int ITEM = 2;
|
private static final int ITEM = 2;
|
||||||
private int freePkNum;//PK次数
|
private int freePkNum;//PK次数
|
||||||
private int mDrPkNum = -1;
|
private int mDrPkNum = -1;//多人PK剩余次数,为-1则认为是单人PK
|
||||||
|
|
||||||
public void setFreePkNum(int freePkNum) {
|
public void setFreePkNum(int freePkNum) {
|
||||||
this.freePkNum = freePkNum;
|
this.freePkNum = freePkNum;
|
||||||
|
@ -37,7 +37,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自由PK
|
* 自由PK/多人PK邀请对话框
|
||||||
*/
|
*/
|
||||||
public class FreePkDialogFragment extends AbsDialogFragment implements View.OnClickListener {
|
public class FreePkDialogFragment extends AbsDialogFragment implements View.OnClickListener {
|
||||||
private static final int TAB_STATUS_SEARCH = 1;
|
private static final int TAB_STATUS_SEARCH = 1;
|
||||||
@ -55,7 +55,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl
|
|||||||
private FreePkRecyclerAdapter adapter;
|
private FreePkRecyclerAdapter adapter;
|
||||||
private DataHelper helper;
|
private DataHelper helper;
|
||||||
private int tabStatus;
|
private int tabStatus;
|
||||||
private int mDrPkNum = -1;
|
private int mDrPkNum = -1;//多人PK剩余次数,为-1时认为是单人PK
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user