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