调整SVGA播放工具
This commit is contained in:
parent
40ba4b8aa8
commit
3b8aedaa17
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user