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

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

View File

@ -28,7 +28,7 @@
<string name="live_role_title" translatable="false">身份特權</string> <string name="live_role_title" translatable="false">身份特權</string>
<string name="noble_seat" translatable="false">貴族坐席</string> <string name="noble_seat" translatable="false">貴族坐席</string>
<string name="live_mic_max">當前連麥語音人數已達到3人無法再添加。</string> <string name="live_mic_max">當前連麥語音人數已達到3人無法再添加。</string>
<string name="live_mic_user_apply" translatable="false">%s 申请连麦</string> <string name="live_mic_user_apply" translatable="false">%s 申請連麥,是否查看</string>
<string name="live_mic_user_down" translatable="false">已踢下麥</string> <string name="live_mic_user_down" translatable="false">已踢下麥</string>
<string name="live_mic_invite" translatable="false">已發出邀請,等待用戶接受</string> <string name="live_mic_invite" translatable="false">已發出邀請,等待用戶接受</string>
<string name="live_mic_request" translatable="false">已同意請求,等待用戶接受</string> <string name="live_mic_request" translatable="false">已同意請求,等待用戶接受</string>