修复bug

This commit is contained in:
Martin
2024-08-27 18:29:00 +08:00
parent faa9adf69a
commit e3d04c9307
13 changed files with 89 additions and 43 deletions

View File

@@ -339,6 +339,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
SVGADrawable drawable = new SVGADrawable(videoItem);
gift_svga.setImageDrawable(drawable);
SVGAViewUtils.playEndClear(gift_svga, false);
gift_svga.setVisibility(View.VISIBLE);
}
@Override
@@ -349,7 +350,12 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
e.printStackTrace();
}
} else {
ImgLoader.display(mContext, u.getDress().getAvatar_frame(), gift_svga);
if(StringUtil.isEmpty(u.getDress().getAvatar_frame())){
gift_svga.setVisibility(View.GONE);
}else{
gift_svga.setVisibility(View.VISIBLE);
ImgLoader.display(mContext, u.getDress().getAvatar_frame(), gift_svga);
}
}
}