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 4e4b9d0f1..81ce41e48 100644 --- a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java @@ -316,7 +316,12 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple SVGADrawable drawable = new SVGADrawable(videoItem); getItem(position, svga1, svga2, svga3).setImageDrawable(drawable); SVGAViewUtils.playEndClear(getItem(position, svga1, svga2, svga3), false); - setVisibility(View.VISIBLE, position, svga1, svga2, svga3); + if (bean.isHide()) { + setVisibility(View.GONE, position, svga1, svga2, svga3); + } else { + setVisibility(View.VISIBLE, position, svga1, svga2, svga3); + } + } @Override @@ -361,13 +366,13 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man); ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3)); getItem(position, mSex1, mSex2, mSex3).setVisibility(View.GONE); - setVisibility(View.GONE, position, svga1, svga2, svga3); + setVisibility(View.GONE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3); } else { ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3)); getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName()); getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE); - getItem(position, svga1, svga2, svga3).setVisibility(View.VISIBLE); + } getItem(position, mSex1, mSex2, mSex3).setImageResource(CommonIconUtil.getSexIcon(bean.getSex())); setVisibility(View.INVISIBLE, position, mSex1, mSex2, mSex3);