From 05b1a9bc749c47e20acf3c00b1df0e14b1a88d7b Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 29 Nov 2022 13:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E8=BF=9B=E7=9B=B4=E6=92=AD=E9=97=B4=E8=B4=AD=E4=B9=B0=E5=AE=88?= =?UTF-8?q?=E6=8A=A4=E6=98=BE=E7=A4=BA=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/activity/LiveAudienceActivity.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 abd2b7a8f..8042946c4 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -306,7 +306,7 @@ public class LiveAudienceActivity extends LiveActivity { @Override public void run() { AnchorRecommendItemModel data = itemModelList.get(mCurrentPage); - if (mCurrentPage==0){ + if (mCurrentPage == 0) { View rootView = manager.getRootView(); if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) { ((ViewGroup) (rootView.getParent())).removeView(rootView); @@ -318,7 +318,7 @@ public class LiveAudienceActivity extends LiveActivity { //加载完页面后再后台静默下载礼物svga downloadAllGift(); over(); - }else { + } else { new LiveRoomCheckLivePresenter(mContext, data.getUid(), data.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() { @Override public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) { @@ -334,10 +334,6 @@ public class LiveAudienceActivity extends LiveActivity { String json = GsonUtils.toJson(data); mLiveBean = GsonUtils.fromJson(json, LiveBean.class); mLiveBean.setUserNiceName(data.getUserNicename()); - mLiveUid = mLiveBean.getUid(); - mStream = mLiveBean.getStream(); - mAncherName = mLiveBean.getUserNiceName(); - mAncherIcon = mLiveBean.getAvatar(); Log.e(TAG, "mLiveUid--------------------------->" + mLiveUid); //加载当前页面数据 View rootView = manager.getRootView(); @@ -359,6 +355,10 @@ public class LiveAudienceActivity extends LiveActivity { } }); } + mLiveUid = mLiveBean.getUid(); + mStream = mLiveBean.getStream(); + mAncherName = mLiveBean.getUserNiceName(); + mAncherIcon = mLiveBean.getAvatar(); } }; @@ -759,7 +759,7 @@ public class LiveAudienceActivity extends LiveActivity { if (liveBean == null) { return; } - if(MicStatusManager.getInstance().isMic(liveUid)){ + if (MicStatusManager.getInstance().isMic(liveUid)) { MicStatusManager.getInstance().showDownMicDialog(mContext); return; } @@ -1058,7 +1058,7 @@ public class LiveAudienceActivity extends LiveActivity { break; case LIVE_ROOM_EXCEPTION: //主播未直播时自动下滑至下一个直播间 - mCurrentPage = mCurrentPage+1; + mCurrentPage = mCurrentPage + 1; liveHandler.post(liveRunnable); break; case REFRESH_THE_LIVEl_PAGE: @@ -1174,9 +1174,9 @@ public class LiveAudienceActivity extends LiveActivity { } if (manager.mLiveRoomViewHolder != null) { manager.mLiveRoomViewHolder.updataMicList(list); - Log.i("多人连麦", "onOpenDrawer: "+list.size()); + Log.i("多人连麦", "onOpenDrawer: " + list.size()); for (LinkMicUserBean userBean : list) { - Log.i("多人连麦", "u list: "+userBean.toString()); + Log.i("多人连麦", "u list: " + userBean.toString()); } } break; @@ -1187,7 +1187,7 @@ public class LiveAudienceActivity extends LiveActivity { } break; case LINK_MIC_CLOSE: - if(manager.mLiveRoomViewHolder!=null){ + if (manager.mLiveRoomViewHolder != null) { manager.mLiveRoomViewHolder.updataCleanMic(); } break;