修复 [分享密码房打不开的问题]

This commit is contained in:
zlzw 2024-04-03 17:08:23 +08:00
parent 98c17b91fc
commit 75da607022

View File

@ -22,6 +22,7 @@ import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
import com.yunbao.common.utils.MicStatusManager;
import com.yunbao.common.utils.RouteUtil;
import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.utils.ToastUtil;
import org.greenrobot.eventbus.EventBus;
@ -98,14 +99,14 @@ public class MessageChatCardItemProvider extends BaseMessageItemProvider<Message
public void onSuccess(int code, String msg, String[] info) {
if (code == 0 && info.length > 0) {
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
new LiveRoomCheckLivePresenter(AppManager.getInstance().getLastActivity(), liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
@Override
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
if (liveBean == null) {
return;
}
if (MicStatusManager.getInstance().isMic(liveUid)) {
MicStatusManager.getInstance().showDownMicDialog(mContext);
MicStatusManager.getInstance().showDownMicDialog(AppManager.getInstance().getLastActivity());
return;
}
if (AppManager.getInstance().getLiveActivity() != null) {
@ -121,7 +122,7 @@ public class MessageChatCardItemProvider extends BaseMessageItemProvider<Message
@Override
public void onCheckError(String contextError) {
ToastUtil.show(contextError);
}
});
} else {