Skip to content

Commit c4d71e8

Browse files
committed
fix: correct demo.
1 parent 741eb01 commit c4d71e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/example/ponycui_home/svgaplayer/AnimationFromAssetsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void onClick(View view) {
3737

3838
private void loadAnimation() {
3939
SVGAParser parser = new SVGAParser(this);
40-
parser.decodeFromAssets("matteRect.svga", new SVGAParser.ParseCompletion() {
40+
parser.decodeFromAssets(this.randomSample(), new SVGAParser.ParseCompletion() {
4141
@Override
4242
public void onComplete(@NotNull SVGAVideoEntity videoItem) {
4343
animationView.setVideoItem(videoItem);

0 commit comments

Comments
 (0)