修复守护问题

This commit is contained in:
18401019693 2022-12-01 17:56:21 +08:00
parent 6bdd81038b
commit d243ffb380

View File

@ -1666,7 +1666,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
url += "uid=" + CommonAppConfig.getInstance().getUid() + "&token=" url += "uid=" + CommonAppConfig.getInstance().getUid() + "&token="
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid; + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
bundle.putString("url", url); bundle.putString("url", url);
bundle.putInt("height",DpUtil.dp2px(500)); bundle.putInt("height", DpUtil.dp2px(500));
bundle.putInt("show_type", 0); bundle.putInt("show_type", 0);
bundle.putString("roomId", mLiveUid); bundle.putString("roomId", mLiveUid);
LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment(); LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment();
@ -2622,6 +2622,18 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
tmp = chatBean; tmp = chatBean;
} }
setGuardIcon(tmp); 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);
}
} }
} }