调整弱网下,礼物加载动画失败后取消

This commit is contained in:
zlzw 2022-10-11 18:03:32 +08:00
parent 1a8e7ecae9
commit 310fe91a19

View File

@ -204,7 +204,10 @@ public class LiveGiftAdapter extends RecyclerView.Adapter<LiveGiftAdapter.Vh> {
if(bean==null){
ToastUtil.show(WordUtil.getString(R.string.load_failure_2));
mLoading.setImageResource(R.mipmap.icon_download_gift);
mLoading.getAnimation().cancel();
animation.setRepeatCount(0);
animation.setDuration(0);
animation.cancel();
mLoading.setAnimation(animation);
}else {
mLoadingLayout.setVisibility(View.GONE);
}