Don't resume animation when system animation is disabled.
While the playAnimation() api call respects systemAnimationsEnabled flag, resumeAnimation() ignores it. Add the condition check to fix the case.
@@ -407,8 +407,10 @@ public class LottieDrawable extends Drawable implements Drawable.Callback, Anima
});
return;
}
+ if (systemAnimationsEnabled) {
animator.resumeAnimation();
}
+ }
/**
* Sets the minimum frame that the animation will start from when playing or looping.
