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 2d72e7d9e..76df8477e 100644 --- a/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java +++ b/common/src/main/java/com/yunbao/common/provider/MessageChatCardItemProvider.java @@ -1,5 +1,6 @@ package com.yunbao.common.provider; +import android.app.Activity; import android.content.Context; import android.content.Intent; import android.text.Spannable; @@ -10,11 +11,13 @@ import com.yunbao.common.Constants; import com.yunbao.common.R; import com.yunbao.common.bean.ActiveBean; import com.yunbao.common.bean.LiveBean; +import com.yunbao.common.event.LiveRoomChangeEvent; import com.yunbao.common.glide.ImgLoader; import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.message.content.MessageChatCardContent; +import com.yunbao.common.utils.AppManager; import com.yunbao.common.utils.LiveRoomCheckLivePresenter; import com.yunbao.common.utils.MicStatusManager; import com.yunbao.common.utils.RouteUtil; @@ -61,9 +64,9 @@ public class MessageChatCardItemProvider extends BaseMessageItemProvider list, IViewProviderListener listener) { if ("1".equals(content.getType())) { gotoLive(content.getExtraData()); - }else if("0".equals(content.getType())){ + } else if ("0".equals(content.getType())) { RouteUtil.forwardCommunity(content.getExtraData()); - }else if("2".equals(content.getType())){ + } else if ("2".equals(content.getType())) { LiveNetManager.get(mContext).getDynamicInfo(content.getExtraData(), new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(ActiveBean data) { @@ -105,7 +108,15 @@ public class MessageChatCardItemProvider extends BaseMessageItemProvider