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); + } } /**