Skip to content

Commit e27c765

Browse files
authored
Update SVGAImageView.kt
move canvas to drawer's drawframe fun
1 parent cf181b9 commit e27c765

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/src/main/java/com/opensource/svgaplayer/SVGAImageView.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class SVGADrawable(val videoItem: SVGAVideoEntity, val dynamicItem: SVGADynamicE
4949
return
5050
}
5151
canvas?.let {
52-
drawer.canvas = it
53-
drawer.drawFrame(currentFrame, scaleType)
52+
drawer.drawFrame(it,currentFrame, scaleType)
5453
}
5554
}
5655

@@ -272,4 +271,4 @@ open class SVGAImageView : ImageView {
272271
stepToFrame(frame, andPlay)
273272
}
274273

275-
}
274+
}

0 commit comments

Comments
 (0)