修复守护问题

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

View File

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