This commit is contained in:
18401019693 2022-08-04 10:14:45 +08:00
parent 805ca91637
commit 6949dea8c9

View File

@ -55,7 +55,7 @@ public class SystemChatMessageAdapter extends RecyclerView.Adapter {
SystemChatMessageViewHolder messageViewHolder = (SystemChatMessageViewHolder) holder;
ImgLoader.displayWithError(mContext, model.getImage(), messageViewHolder.avatarImage, com.yunbao.live.R.mipmap.chat_head_mo);
if (position == 2) {
messageViewHolder.userMsg.setText(TextUtils.isEmpty(model.getLink()) ? mContext.getResources().getString(R.string.chat_like) : model.getLink());
messageViewHolder.userMsg.setText(TextUtils.isEmpty(model.getContent()) ? mContext.getResources().getString(R.string.chat_like) : model.getContent());
} else {
if (position == 1) {
messageViewHolder.userMsg.setText(TextUtils.isEmpty(model.getContent()) ? mContext.getResources().getString(R.string.chat_action_no) : model.getContent());