We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68552dc commit 01e9e1dCopy full SHA for 01e9e1d
library/src/main/java/com/opensource/svgaplayer/SVGAImageView.kt
@@ -176,7 +176,7 @@ open class SVGAImageView : ImageView {
176
}
177
178
fun startAnimation(range: SVGARange?, reverse: Boolean = false) {
179
- animator?.cancel()
+ stopAnimation(false)
180
val drawable = drawable as? SVGADrawable ?: return
181
drawable.cleared = false
182
drawable.scaleType = scaleType
@@ -247,6 +247,7 @@ open class SVGAImageView : ImageView {
247
248
fun stopAnimation(clear: Boolean) {
249
animator?.cancel()
250
+ animator?.removeAllListeners()
251
animator?.removeAllUpdateListeners()
252
(drawable as? SVGADrawable)?.let {
253
it.cleared = clear
0 commit comments