From 80a1508dfcaae17d6ba36ba8781d13154f0b23e6 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 1 Dec 2022 13:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E5=BC=80?= =?UTF-8?q?=E6=92=ADPk=E7=95=8C=E9=9D=A2=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E8=81=8A=E5=A4=A9=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E8=87=B3=E5=BA=95=E9=83=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/layout/custom_drawer_popup.xml | 1 + config.gradle | 4 ++-- .../yunbao/live/adapter/LiveChatAdapter.java | 21 +++++++++++++++---- .../live/views/PortraitLiveManager.java | 14 ++++++++++++- 4 files changed, 33 insertions(+), 7 deletions(-) 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