From 310fe91a19a395b76a2f81c506f002242bc89f8f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 11 Oct 2022 18:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BC=B1=E7=BD=91=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E7=A4=BC=E7=89=A9=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=90=8E=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/adapter/LiveGiftAdapter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }