diff --git a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java index a05bb818f..c13a3a0b4 100644 --- a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java +++ b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java @@ -231,7 +231,7 @@ public class MainListAdapter extends RefreshAdapter { 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); } diff --git a/main/src/main/java/com/yunbao/main/bean/ListBean.java b/main/src/main/java/com/yunbao/main/bean/ListBean.java index 6e4882719..2e074d7a1 100644 --- a/main/src/main/java/com/yunbao/main/bean/ListBean.java +++ b/main/src/main/java/com/yunbao/main/bean/ListBean.java @@ -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() { diff --git a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java index bbcb5b2cd..d3173e328 100644 --- a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java @@ -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);