修复直播间不显示靓号问题

This commit is contained in:
zlzw 2022-12-14 17:13:25 +08:00
parent 1407ecc2f2
commit d49b60a1e1
3 changed files with 5 additions and 1 deletions

View File

@ -730,6 +730,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.startAnchorLiveTime();
mLiveRoomViewHolder.startAnchorCheckLive();
mLiveRoomViewHolder.setAnchorGoodNumber(obj.getString("goodnum"));
}
mStartLive = true;
mLiveRoomViewHolder.startRefreshUserList();

View File

@ -3205,6 +3205,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void setAnchorGoodNumber(String goodNumber) {
if (!StringUtil.isEmpty(goodNumber) && !goodNumber.equals("0")) {
mAnchorLayout.setBackgroundResource(R.drawable.bg_live_anchor_goodnum);
mID.setText(goodNumber);
mGoodNumberIcon.setVisibility(View.VISIBLE);
}
}

View File

@ -366,6 +366,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setGuardIcon(data.getGuardUserAvatar());
//在线列表
mLiveRoomViewHolder.setUserList(data.getEnterRoomInfo().getUserlists());
//设置靓号
mLiveRoomViewHolder.setAnchorGoodNumber(data.getLiveInfo().getGoodnum());
List<BannerBean> bannerBeans = new ArrayList<>();
//心愿单
if (data.getWishList().getWishList().size() > 0) {
@ -506,7 +508,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setOtherInfo(pkInfo.getString("pkuid"), pkInfo.getString("pkuimg"), pkInfo.getString("pkuname"));
}
};
linkMicPkStartHandler.postDelayed(linkMicPkStartRunnable,4000);
linkMicPkStartHandler.postDelayed(linkMicPkStartRunnable, 4000);
}
mLiveRyLinkMicPkPresenter.onEnterRoomPkStart(pkUid, pkInfo.getLongValue("pk_gift_liveuid"), pkInfo.getLongValue("pk_gift_pkuid"), pkInfo.getIntValue("pk_time"), livePKUserListBean);