From 93e25f58f5f19286939ff54a89d2fd4442198f93 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 28 Sep 2022 14:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E7=A5=9E=E7=A7=98?= =?UTF-8?q?=E4=BA=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/adapter/UserMoreInfoAdapter.java | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java b/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java index 3129f972e..e8c1cf9a7 100644 --- a/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java @@ -244,15 +244,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter { mRanksIcon.addView(rankImage, 0); } } - if (bean.isHide() && (type.equals("5") || type.equals("4"))) { - mName.setText(R.string.mystery_man); - ImgLoader.display(mContext, R.mipmap.hide, mAvatar); - itemView.findViewById(R.id.state).setVisibility(View.GONE); - } else { - ImgLoader.display(mContext, bean.getAvatar(), mAvatar); - mName.setText(bean.getUserNiceName()); - itemView.findViewById(R.id.state).setVisibility(View.VISIBLE); - } + if (bean.getDress() != null && bean.getDress().getAvatar_frame() != null) { gift_svga.setVisibility(View.VISIBLE); if (bean.getDress().getAvatar_frame().contains("svga")) { @@ -262,7 +254,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); gift_svga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(gift_svga); + SVGAViewUtils.playEndClear(gift_svga,false); } @Override @@ -291,6 +283,17 @@ public class UserMoreInfoAdapter extends RefreshAdapter { if (levelBean != null) { ImgLoader.display(mContext, levelBean.getThumb(), mLevel); } + if (bean.isHide() && (type.equals("5") || type.equals("4"))) { + mName.setText(R.string.mystery_man); + ImgLoader.display(mContext, R.mipmap.hide, mAvatar); + itemView.findViewById(R.id.state).setVisibility(View.GONE); + gift_svga.setVisibility(View.GONE); + } else { + ImgLoader.display(mContext, bean.getAvatar(), mAvatar); + mName.setText(bean.getUserNiceName()); + itemView.findViewById(R.id.state).setVisibility(View.VISIBLE); + gift_svga.setVisibility(View.VISIBLE); + } } /**