修复第一次进直播间购买守护显示为空的问题

This commit is contained in:
zlzw 2022-11-29 13:09:54 +08:00
parent 7f001ba887
commit 05b1a9bc74

View File

@ -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();
}
};