diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index aa96bdef8..cb93c9155 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -690,7 +690,7 @@ public class LiveAudienceActivity extends LiveActivity { @Subscribe(threadMode = ThreadMode.MAIN) public void onLiveRoomChangeEvent(LiveRoomChangeEvent e) { - if (verticalViewPager.ismEnableScroll()) { + LiveBean liveBean = e.getLiveBean(); if (e.isLiveEnd()) { manager.removeLiveEnd(); @@ -709,9 +709,7 @@ public class LiveAudienceActivity extends LiveActivity { mAncherIcon = liveBean.getAvatar(); manager.onAdd(liveBean, mLiveType, mLiveTypeVal, mLiveSDK); } - } else { - verticalViewPager.setEnableScroll(IMLoginManager.get(mContext).isSlide()); - } + } @Override