From a67c2b4009ea528d04fdd723dd720458b9583e4f Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 1 Jun 2023 15:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A6=9C=E5=8D=95=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/main/views/AbsMainListChildViewHolder.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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);