调整SVGA播放工具

This commit is contained in:
zlzw 2024-08-02 16:23:42 +08:00
parent 40ba4b8aa8
commit 3b8aedaa17
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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