修复活动Banner加载框不消失的问题
This commit is contained in:
parent
a16ae482a8
commit
81933f0ad7
@ -3021,26 +3021,22 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setActivity(true)
|
.setActivity(true)
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
||||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
|
||||||
loadingDialog.dismiss();
|
|
||||||
loadingDialog = null;
|
|
||||||
}, 300);
|
|
||||||
} else if (bean.getActivityId() == 0) {
|
} else if (bean.getActivityId() == 0) {
|
||||||
openWebDialog(bean.getLink());
|
openWebDialog(bean.getLink());
|
||||||
} else {
|
} else {
|
||||||
LiveGameDialogFragment fragment = new LiveGameDialogFragment("1".equals(bean.getShow_type()));
|
LiveGameDialogFragment fragment = new LiveGameDialogFragment("1".equals(bean.getShow_type()));
|
||||||
fragment.setActivityId(bean.getActivityId());
|
fragment.setActivityId(bean.getActivityId());
|
||||||
fragment.setRoomId(mLiveUid);
|
fragment.setRoomId(mLiveUid);
|
||||||
fragment.setShowListener(dialog1 -> {
|
|
||||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
|
||||||
loadingDialog.dismiss();
|
|
||||||
loadingDialog = null;
|
|
||||||
}, 300);
|
|
||||||
});
|
|
||||||
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
|
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGameDialogFragment");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
loadingDialog.show();
|
loadingDialog.show();
|
||||||
|
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||||
|
if (loadingDialog != null && loadingDialog.isShowing()) {
|
||||||
|
loadingDialog.dismiss();
|
||||||
|
}
|
||||||
|
loadingDialog = null;
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user