修复第一次进直播间购买守护显示为空的问题
This commit is contained in:
parent
7f001ba887
commit
05b1a9bc74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user