diff --git a/common/src/main/res/layout/custom_drawer_popup.xml b/common/src/main/res/layout/custom_drawer_popup.xml index e7e390913..d80a71d15 100644 --- a/common/src/main/res/layout/custom_drawer_popup.xml +++ b/common/src/main/res/layout/custom_drawer_popup.xml @@ -108,6 +108,7 @@ () { @Override public void onSuccess(EnterRoomNewModel data) { - mLivePlayViewHolder.setLiveBeanLandscape(data.getLiveInfo().getLandscape()); + landscape = data.getLiveInfo().getLandscape(); + mLivePlayViewHolder.setLiveBeanLandscape(landscape); //是否热度卡加成 liveHandler.postDelayed(() -> mLiveRoomViewHolder.getIsHot(data.getIsUseHotCard()), 700); @@ -1228,6 +1231,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe }, 4000);//3秒后执行Runnable中的run方法 } + if (mLivePlayViewHolder!=null){ + mLivePlayViewHolder.setLiveBeanLandscape(1); + } } @Override @@ -1239,6 +1245,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveRoomViewHolder.resetViewGone(); } } + if (mLiveRoomViewHolder != null) { + mLivePlayViewHolder.setLiveBeanLandscape(landscape); + } } @Override @@ -1262,6 +1271,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveRyLinkMicPkPresenter.onLinkMicPkEnd(winUid); mLiveRoomViewHolder.setDelOtherInfo(); } + if (mLiveRoomViewHolder != null) { + mLivePlayViewHolder.setLiveBeanLandscape(landscape); + } } @Override