优化主播连麦邀请/同意时提示体验

This commit is contained in:
2022-11-28 10:59:11 +08:00
parent 546d9b5728
commit fe027e53db
2 changed files with 5 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
break;
case Constants.LIVE_FUNC_MIC://語音
//ToastUtil.show("開發中,敬請期待");
openMicWindow();
openMicWindow(1);
break;
case Constants.LIVE_FUNC_DR://多人PK
if (isDRPK != 1) {
@@ -393,12 +393,12 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
}
}
private void openMicWindow() {
private void openMicWindow(int index) {
LiveMicAnchorDialogFragment fragment = new LiveMicAnchorDialogFragment();
Bundle bundle = new Bundle();
bundle.putString(Constants.LIVE_UID, mLiveUid);
bundle.putString(Constants.STREAM, mStream);
bundle.putString("By", "1");
bundle.putString("By", index+"");
fragment.setArguments(bundle);
micListener = fragment.getMicListener();
fragment.setMicQueueList(mMicQueueList);
@@ -1339,7 +1339,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
new DialogUitl.SimpleCallback() {
@Override
public void onConfirmClick(Dialog dialog, String content) {
openMicWindow();
openMicWindow(2);
dialog.dismiss();
}
}