修复直播间侧边栏Banner点击后加载弹窗不会消失的问题
This commit is contained in:
parent
bc87e143c8
commit
0d6bf8adaa
@ -77,6 +77,7 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
String link = bean.getSlideUrl();
|
||||
if (link.contains("http")) {
|
||||
WebViewActivity.forward(itemView.getContext(), link, true);
|
||||
if (mShowLoadingDialog != null && mShowLoadingDialog.isShowing())
|
||||
mShowLoadingDialog.dismiss();
|
||||
} else {
|
||||
gotoLive(link, bean.getType());
|
||||
@ -99,6 +100,7 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
|
||||
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(itemView.getContext(), (liveBean1, liveType, liveTypeVal, liveSdk) -> {
|
||||
if (liveBean1 == null) {
|
||||
if (mShowLoadingDialog != null && mShowLoadingDialog.isShowing())
|
||||
mShowLoadingDialog.dismiss();
|
||||
return;
|
||||
}
|
||||
@ -108,12 +110,14 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
map.put("OPEN", "NEWUSER");
|
||||
}
|
||||
LiveAudienceActivity.forward(itemView.getContext(), liveBean1, liveType, liveTypeVal, "", map, 0, liveSdk);
|
||||
if (mShowLoadingDialog != null && mShowLoadingDialog.isShowing())
|
||||
mShowLoadingDialog.dismiss();
|
||||
((Activity) itemView.getContext()).finish();
|
||||
});
|
||||
mCheckLivePresenter.checkLive(liveBean);
|
||||
|
||||
} else {
|
||||
if (mShowLoadingDialog != null && mShowLoadingDialog.isShowing())
|
||||
mShowLoadingDialog.dismiss();
|
||||
RouteUtil.forwardUserHome(itemView.getContext(), liveId, 0);
|
||||
((Activity) itemView.getContext()).finish();
|
||||
|
Loading…
Reference in New Issue
Block a user