修改,关闭直播间滑动以后为你推荐无法切换直播间问题

This commit is contained in:
18401019693 2023-02-09 16:21:19 +08:00
parent 3549c25cca
commit d3268e57bc

View File

@ -690,7 +690,7 @@ public class LiveAudienceActivity extends LiveActivity {
@Subscribe(threadMode = ThreadMode.MAIN) @Subscribe(threadMode = ThreadMode.MAIN)
public void onLiveRoomChangeEvent(LiveRoomChangeEvent e) { public void onLiveRoomChangeEvent(LiveRoomChangeEvent e) {
if (verticalViewPager.ismEnableScroll()) {
LiveBean liveBean = e.getLiveBean(); LiveBean liveBean = e.getLiveBean();
if (e.isLiveEnd()) { if (e.isLiveEnd()) {
manager.removeLiveEnd(); manager.removeLiveEnd();
@ -709,9 +709,7 @@ public class LiveAudienceActivity extends LiveActivity {
mAncherIcon = liveBean.getAvatar(); mAncherIcon = liveBean.getAvatar();
manager.onAdd(liveBean, mLiveType, mLiveTypeVal, mLiveSDK); manager.onAdd(liveBean, mLiveType, mLiveTypeVal, mLiveSDK);
} }
} else {
verticalViewPager.setEnableScroll(IMLoginManager.get(mContext).isSlide());
}
} }
@Override @Override