*新增长按随机PK【开始匹配】按钮可输入指定UIDPk的测试模式
This commit is contained in:
@@ -402,8 +402,8 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
break;
|
||||
case Constants.LIVE_FUNC_LINK_MIC://连麦
|
||||
if (isDRPK != 1) {
|
||||
//openLinkMicAnchorWindow(false);
|
||||
openFreePkWindow();
|
||||
openLinkMicAnchorWindow(false);
|
||||
//openFreePkWindow();
|
||||
} else {
|
||||
ToastUtil.show("您已在PK中");
|
||||
}
|
||||
|
||||
@@ -117,6 +117,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
initView();
|
||||
initData();
|
||||
RandomPkManager.debugUid = null;
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
@@ -127,6 +128,17 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
|
||||
mRandomPkSwitch.setTag(true);
|
||||
mRandomPkSwitch.setOnClickListener(this);
|
||||
mPkBtn.setOnClickListener(this);
|
||||
mPkBtn.setOnLongClickListener(v -> {
|
||||
DialogUitl.showSimpleInputDialog(mContext, "输入指定UID", new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
RandomPkManager.debugUid = content;
|
||||
ToastUtil.show("随机PK指定id = " + content);
|
||||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
private void initData() {
|
||||
|
||||
Reference in New Issue
Block a user