修复:修复主播关播数据不展示问题
This commit is contained in:
parent
606fc64262
commit
ee2cebdc41
@ -10,9 +10,9 @@ ext {
|
||||
manifestPlaceholders = [
|
||||
//正式
|
||||
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
// 測試
|
||||
// serverHost : "https://ceshi.yaoulive.com",
|
||||
serverHost : "https://ceshi.yaoulive.com",
|
||||
|
||||
//腾讯地图
|
||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||
|
@ -858,6 +858,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
mLiveEndViewHolder.subscribeActivityLifeCycle();
|
||||
mLiveEndViewHolder.addToParent();
|
||||
mLiveEndViewHolder.showData(mLiveBean, mStream);
|
||||
mLiveEndViewHolder.upData(datas.getString("votes"), datas.getString("length"), Long.parseLong(datas.getString("nums")));
|
||||
}
|
||||
if (mLiveAnchorViewHolder != null) {
|
||||
mLiveAnchorViewHolder.release();
|
||||
@ -979,27 +980,27 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.anchorPause();
|
||||
}
|
||||
// if (mLiveRoomViewHolder != null) {
|
||||
// mLiveRoomViewHolder.anchorPause();
|
||||
// }
|
||||
super.onPause();
|
||||
if (isKeyBack) {
|
||||
sendSystemMessage(WordUtil.getString(R.string.live_anchor_leave));
|
||||
}
|
||||
mPaused = true;
|
||||
// if (isKeyBack) {
|
||||
// sendSystemMessage(WordUtil.getString(R.string.live_anchor_leave));
|
||||
// }
|
||||
// mPaused = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
if (mPaused) {
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.anchorResume();
|
||||
}
|
||||
sendSystemMessage(WordUtil.getString(R.string.live_anchor_come_back));
|
||||
CommonHttpUtil.checkTokenInvalid();
|
||||
}
|
||||
mPaused = false;
|
||||
// if (mPaused) {
|
||||
// if (mLiveRoomViewHolder != null) {
|
||||
// mLiveRoomViewHolder.anchorResume();
|
||||
// }
|
||||
// sendSystemMessage(WordUtil.getString(R.string.live_anchor_come_back));
|
||||
// CommonHttpUtil.checkTokenInvalid();
|
||||
// }
|
||||
// mPaused = false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -220,6 +220,26 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
}
|
||||
}
|
||||
|
||||
public void upData(String votes, String length, long nums) {
|
||||
Log.e("收", votes + "votes" + length + "length" + nums + "nums");
|
||||
if (type == LiveOfType.USER) {
|
||||
if (liveDurationUser != null) {
|
||||
liveDurationUser.setText(length);
|
||||
}
|
||||
|
||||
} else {
|
||||
if (liveDurationAnchor != null) {
|
||||
liveDurationAnchor.setText(length);
|
||||
}
|
||||
if (liveVotes != null) {
|
||||
liveVotes.setText(votes);
|
||||
}
|
||||
if (liveWatchNum != null) {
|
||||
liveWatchNum.setText(StringUtil.toWan(nums));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void showData(LiveBean liveBean, final String stream) {
|
||||
if (TextUtils.equals(model.getId() + "", liveBean.getUid())) {
|
||||
type = LiveOfType.ANCHOR;
|
||||
@ -331,7 +351,7 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
if (liveBean == null) {
|
||||
return;
|
||||
}
|
||||
if(MicStatusManager.getInstance().isMic(liveUid)){
|
||||
if (MicStatusManager.getInstance().isMic(liveUid)) {
|
||||
MicStatusManager.getInstance().showDownMicDialog(mContext);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user