Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #128 from xxjy/master
Browse files Browse the repository at this point in the history
fix:ScaleType is incorrect when animation is not automatically played
  • Loading branch information
PonyCui authored Apr 13, 2019
2 parents 89f3a70 + e18bd01 commit 1591ed8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ open class SVGAImageView : ImageView {
this@SVGAImageView.post {
videoItem.antiAlias = antiAlias
setVideoItem(videoItem)
(drawable as? SVGADrawable)?.scaleType = scaleType
if (autoPlay) {
startAnimation()
}
Expand Down

0 comments on commit 1591ed8

Please sign in to comment.