From a4ab6df974caf10df0d12b8cf2908a10c0c28bcc Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 16 Nov 2022 16:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E9=87=8D=E5=88=B6UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/presenter/LiveLinkMicAnchorPresenter.java | 4 ++++ .../java/com/yunbao/live/presenter/LiveLinkMicPresenter.java | 3 +++ .../java/com/yunbao/live/views/LivePlayKsyViewHolder.java | 5 +++++ .../java/com/yunbao/live/views/LivePlayRyViewHolder.java | 5 +++++ .../java/com/yunbao/live/views/LivePlayTxViewHolder.java | 4 ++++ .../com/yunbao/live/views/LivePlayTxViewHolder_backup.java | 5 +++++ .../java/com/yunbao/live/views/LiveRoomPlayViewHolder.java | 2 ++ .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 5 +++++ 8 files changed, 33 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java index 6d001c6a8..e32a32c7d 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java @@ -496,4 +496,8 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener { mLastApplyLinkMicTime = 0; DialogUitl.showSimpleTipDialog(mContext, WordUtil.getString(R.string.link_mic_play_game)); } + + public void setLiveSdk(int mLiveSDK) { + this.mLiveSdk=mLiveSDK; + } } diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java index b6e427e10..8855e7d8a 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java @@ -856,4 +856,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener { mLiveLinkMicPushViewHolder = null; } + public void setLiveSdk(int mLiveSDK) { + this.mLiveSdk=mLiveSDK; + } } diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java index 38868614e..374978a99 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java @@ -249,6 +249,11 @@ public class LivePlayKsyViewHolder extends LiveRoomPlayViewHolder { } } + @Override + public void setLiveBeanLandscape(int landscape) { + LivePlayKsyViewHolder.landscape =landscape; + } + @Override public ViewGroup getSmallContainer() { diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java index 3528bc106..13477491f 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java @@ -164,6 +164,11 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { } } + @Override + public void setLiveBeanLandscape(int landscape) { + LivePlayRyViewHolder.landscape =landscape; + } + /** * 暂停播放 */ diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java index b92a299bd..9aef30b33 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java @@ -79,6 +79,10 @@ public class LivePlayTxViewHolder extends LiveRoomPlayViewHolder implements ITXL } + @Override + public void setLiveBeanLandscape(int landscape) { + } + @Override protected int getLayoutId() { return R.layout.view_live_play_tx; diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java index 50afb11ef..2aaa2705e 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java @@ -67,6 +67,11 @@ public class LivePlayTxViewHolder_backup extends LiveRoomPlayViewHolder implemen } + @Override + public void setLiveBeanLandscape(int landscape) { + + } + public LivePlayTxViewHolder_backup(Context context, ViewGroup parentView) { super(context, parentView); } diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java index 8d5d8fa7e..55a6412e4 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java @@ -39,4 +39,6 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL public abstract void setPkview(); public abstract void setPkEndview(); + + public abstract void setLiveBeanLandscape(int landscape); } diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 79a0eef94..ccd5fb86e 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -258,6 +258,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveAudienceViewHolder.addToParent(); mLiveRoomViewHolder.addToParent(); mLiveAudienceViewHolder.subscribeActivityLifeCycle(); + }else{ + mLivePlayViewHolder.setLiveBeanLandscape(mLiveBean.getLandscape()); + mLiveLinkMicPresenter.setLiveSdk(mLiveSDK); + mLiveLinkMicAnchorPresenter.setLiveSdk(mLiveSDK); + } //直播间背景 ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);