From 3b8aedaa17ff3ebecdb3ce92e507172c095426ff Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 2 Aug 2024 16:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4SVGA=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/utils/SVGAViewUtils.java | 4 ++-- .../java/com/yunbao/live/dialog/LiveUserDialogFragment.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java b/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java index c7085b77e..6cc0e3b22 100644 --- a/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java +++ b/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java @@ -20,7 +20,7 @@ public class SVGAViewUtils { } } CrashSaveBean.getInstance().addPlaySvga(); - svga.setLoops(loop); + // svga.setLoops(loop); svga.setCallback(new SVGACallback() { @Override public void onPause() { @@ -74,7 +74,7 @@ public class SVGAViewUtils { SVGA_CACHE.clear(); } public static void playEndClear(SVGAImageView svga, boolean isClear, SVGACallback callback) { - playEndClear(svga, isClear,0, null); + playEndClear(svga, isClear,1, null); } public static void playEndClear(SVGAImageView svga, boolean isClear) { playEndClear(svga, isClear,null); diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java index f27a471c2..8e23a8a9c 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java @@ -538,7 +538,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); gift_svga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(gift_svga); + SVGAViewUtils.playEndClear(gift_svga,true,0,null); } @Override