修复#220问题

This commit is contained in:
zlzw 2023-07-06 17:59:00 +08:00
parent 640dea5c53
commit 6b7a98dbc3
3 changed files with 11 additions and 2 deletions

View File

@ -231,7 +231,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
ImgLoader.display(mContext, R.mipmap.hide, mAvatar);
mSex.setVisibility(View.GONE);
} else {
ImgLoader.display(mContext, bean.getAvatarThumb(), mAvatar);
ImgLoader.display(mContext, bean.getAvatar(), mAvatar);
mName.setText(bean.getUserNiceName());
mSex.setVisibility(View.VISIBLE);
}

View File

@ -13,6 +13,7 @@ public class ListBean {
private String uid;
private String userNiceName;
private String avatarThumb;
private String avatar;
private int sex;
private int levelAnchor;
private int level;
@ -128,6 +129,14 @@ public class ListBean {
public void setSex(int sex) {
this.sex = sex;
}
@JSONField(name = "avatar")
public String getAvatar() {
return avatar;
}
@JSONField(name = "avatar")
public void setAvatar(String avatar) {
this.avatar = avatar;
}
@Override
public String toString() {

View File

@ -374,7 +374,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
setVisibility(View.INVISIBLE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3);
} else {
ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3));
ImgLoader.display(mContext, bean.getAvatar(), getItem(position, mAvatar1, mAvatar2, mAvatar3));
getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName());
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE);