邀请后不接受倒计时完了在邀请 不显示pk弹出框

This commit is contained in:
18142669586 2024-05-28 15:20:43 +08:00
parent d5f78cc83a
commit 0afee3543e

View File

@ -554,14 +554,18 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
mApplyUrl = u.getAvatar(); mApplyUrl = u.getAvatar();
mApplyNmae = u.getUserNiceName(); mApplyNmae = u.getUserNiceName();
if (by != 1) { if (by != 1) {
Log.e("ry", "1"+u.getUserNiceName() + "单人收到" + u.getAvatar());
if (mIsApplyDialogShow == false) { if (mIsApplyDialogShow == false) {
if (u.isRandomPk()) { if (u.isRandomPk()) {
Log.e("ry", "2"+u.getUserNiceName() + "单人收到" + u.getAvatar());
showPkDialog(u); showPkDialog(u);
} else { } else {
Log.e("ry", "3"+u.getUserNiceName() + "单人收到" + u.getAvatar());
showApplyDialog(u); showApplyDialog(u);
} }
} }
} else { } else {
Log.e("ry", "4"+u.getUserNiceName() + "单人收到" + u.getAvatar());
isPK(u); isPK(u);
} }
} }
@ -683,6 +687,7 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
} else { } else {
if (mPkWaitCount < 0) { if (mPkWaitCount < 0) {
if(rtcRoom==null){ if(rtcRoom==null){
mIsApplyDialogShow = false;
return; return;
} }
rtcRoom.getLocalUser().responseJoinOtherRoom(u.getId(), u.getId(), false, false, "extra", new IRCRTCResultCallback() { rtcRoom.getLocalUser().responseJoinOtherRoom(u.getId(), u.getId(), false, false, "extra", new IRCRTCResultCallback() {