update 随机PK 修复对方主播正在PK时不会继续调用next接口
This commit is contained in:
@@ -27,6 +27,11 @@ import java.util.Arrays;
|
||||
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
||||
private static final int HEAD = 0;
|
||||
private static final int ITEM = 2;
|
||||
private int freePkNum;//PK次数
|
||||
|
||||
public void setFreePkNum(int freePkNum) {
|
||||
this.freePkNum = freePkNum;
|
||||
}
|
||||
|
||||
public FreePkRecyclerAdapter(Context context) {
|
||||
super(context);
|
||||
@@ -101,6 +106,10 @@ public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
||||
ToastUtil.show(R.string.free_pk_user_pking);
|
||||
return;
|
||||
}
|
||||
if (freePkNum == 0) {
|
||||
ToastUtil.show(R.string.free_pk_num_null);
|
||||
return;
|
||||
}
|
||||
LiveHttpUtil.getMicList(LiveRyAnchorActivity.mLiveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
@@ -151,6 +151,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl
|
||||
@Override
|
||||
public void onSuccess(Integer data) {
|
||||
freePkNum.setText("" + data);
|
||||
adapter.setFreePkNum(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -238,6 +239,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
*
|
||||
* @param key
|
||||
*/
|
||||
public void search(String key) {
|
||||
|
||||
Reference in New Issue
Block a user