diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveGiftAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveGiftAdapter.java index c7284bed0..58f477eff 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveGiftAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveGiftAdapter.java @@ -204,7 +204,10 @@ public class LiveGiftAdapter extends RecyclerView.Adapter { 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); }