直播间神秘人修改

This commit is contained in:
18401019693 2022-09-28 14:33:10 +08:00
parent c9895781d5
commit 93e25f58f5

View File

@ -244,15 +244,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
mRanksIcon.addView(rankImage, 0); 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) { if (bean.getDress() != null && bean.getDress().getAvatar_frame() != null) {
gift_svga.setVisibility(View.VISIBLE); gift_svga.setVisibility(View.VISIBLE);
if (bean.getDress().getAvatar_frame().contains("svga")) { if (bean.getDress().getAvatar_frame().contains("svga")) {
@ -262,7 +254,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
public void onComplete(SVGAVideoEntity videoItem) { public void onComplete(SVGAVideoEntity videoItem) {
SVGADrawable drawable = new SVGADrawable(videoItem); SVGADrawable drawable = new SVGADrawable(videoItem);
gift_svga.setImageDrawable(drawable); gift_svga.setImageDrawable(drawable);
SVGAViewUtils.playEndClear(gift_svga); SVGAViewUtils.playEndClear(gift_svga,false);
} }
@Override @Override
@ -291,6 +283,17 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
if (levelBean != null) { if (levelBean != null) {
ImgLoader.display(mContext, levelBean.getThumb(), mLevel); 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);
}
} }
/** /**