修复第一次进直播间购买守护显示为空的问题
This commit is contained in:
parent
7f001ba887
commit
05b1a9bc74
@ -306,7 +306,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AnchorRecommendItemModel data = itemModelList.get(mCurrentPage);
|
AnchorRecommendItemModel data = itemModelList.get(mCurrentPage);
|
||||||
if (mCurrentPage==0){
|
if (mCurrentPage == 0) {
|
||||||
View rootView = manager.getRootView();
|
View rootView = manager.getRootView();
|
||||||
if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) {
|
if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) {
|
||||||
((ViewGroup) (rootView.getParent())).removeView(rootView);
|
((ViewGroup) (rootView.getParent())).removeView(rootView);
|
||||||
@ -318,7 +318,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
//加载完页面后再后台静默下载礼物svga
|
//加载完页面后再后台静默下载礼物svga
|
||||||
downloadAllGift();
|
downloadAllGift();
|
||||||
over();
|
over();
|
||||||
}else {
|
} else {
|
||||||
new LiveRoomCheckLivePresenter(mContext, data.getUid(), data.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
|
new LiveRoomCheckLivePresenter(mContext, data.getUid(), data.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
|
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);
|
String json = GsonUtils.toJson(data);
|
||||||
mLiveBean = GsonUtils.fromJson(json, LiveBean.class);
|
mLiveBean = GsonUtils.fromJson(json, LiveBean.class);
|
||||||
mLiveBean.setUserNiceName(data.getUserNicename());
|
mLiveBean.setUserNiceName(data.getUserNicename());
|
||||||
mLiveUid = mLiveBean.getUid();
|
|
||||||
mStream = mLiveBean.getStream();
|
|
||||||
mAncherName = mLiveBean.getUserNiceName();
|
|
||||||
mAncherIcon = mLiveBean.getAvatar();
|
|
||||||
Log.e(TAG, "mLiveUid--------------------------->" + mLiveUid);
|
Log.e(TAG, "mLiveUid--------------------------->" + mLiveUid);
|
||||||
//加载当前页面数据
|
//加载当前页面数据
|
||||||
View rootView = manager.getRootView();
|
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) {
|
if (liveBean == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(MicStatusManager.getInstance().isMic(liveUid)){
|
if (MicStatusManager.getInstance().isMic(liveUid)) {
|
||||||
MicStatusManager.getInstance().showDownMicDialog(mContext);
|
MicStatusManager.getInstance().showDownMicDialog(mContext);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1058,7 +1058,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
break;
|
break;
|
||||||
case LIVE_ROOM_EXCEPTION:
|
case LIVE_ROOM_EXCEPTION:
|
||||||
//主播未直播时自动下滑至下一个直播间
|
//主播未直播时自动下滑至下一个直播间
|
||||||
mCurrentPage = mCurrentPage+1;
|
mCurrentPage = mCurrentPage + 1;
|
||||||
liveHandler.post(liveRunnable);
|
liveHandler.post(liveRunnable);
|
||||||
break;
|
break;
|
||||||
case REFRESH_THE_LIVEl_PAGE:
|
case REFRESH_THE_LIVEl_PAGE:
|
||||||
@ -1174,9 +1174,9 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
}
|
}
|
||||||
if (manager.mLiveRoomViewHolder != null) {
|
if (manager.mLiveRoomViewHolder != null) {
|
||||||
manager.mLiveRoomViewHolder.updataMicList(list);
|
manager.mLiveRoomViewHolder.updataMicList(list);
|
||||||
Log.i("多人连麦", "onOpenDrawer: "+list.size());
|
Log.i("多人连麦", "onOpenDrawer: " + list.size());
|
||||||
for (LinkMicUserBean userBean : list) {
|
for (LinkMicUserBean userBean : list) {
|
||||||
Log.i("多人连麦", "u list: "+userBean.toString());
|
Log.i("多人连麦", "u list: " + userBean.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1187,7 +1187,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LINK_MIC_CLOSE:
|
case LINK_MIC_CLOSE:
|
||||||
if(manager.mLiveRoomViewHolder!=null){
|
if (manager.mLiveRoomViewHolder != null) {
|
||||||
manager.mLiveRoomViewHolder.updataCleanMic();
|
manager.mLiveRoomViewHolder.updataCleanMic();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user