diff --git a/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java b/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java index 76df8477e..390a78c95 100644 --- a/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java +++ b/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java @@ -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 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