diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 8a547e1c7..0838a503e 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1666,7 +1666,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis url += "uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid; bundle.putString("url", url); - bundle.putInt("height",DpUtil.dp2px(500)); + bundle.putInt("height", DpUtil.dp2px(500)); bundle.putInt("show_type", 0); bundle.putString("roomId", mLiveUid); LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment(); @@ -2622,6 +2622,18 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis tmp = chatBean; } setGuardIcon(tmp); + if (mContext instanceof LiveAudienceActivity) { + int type = 0; + GuardUserModel model = new GuardUserModel(); + if (TextUtils.isEmpty(guardUserModel.getGuardType())) { + type = Integer.parseInt(guardUserModel.getGuardType()); + } + if (chatBean.getGuardType() != 0 && chatBean.getGuardType() > type) { + model.setGuardType(String.valueOf(chatBean.getGuardType())); + model.setGuardUserAvatar(chatBean.getAvatar()); + } + setGuardIcon(model); + } } }