LottieOnCompositionLoadedListener
is not called when the animation is loaded again
#2505
Labels
LottieOnCompositionLoadedListener
is not called when the animation is loaded again
#2505
Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.
If you don't use this template, your issue will be closed. Delete this text once completed.
Checklist
module may be auto-closed. ✅
Link to fork with a repro in the issue-repro module
https://github.com/linkaipeng/lottie-android/tree/master/issue-repro
Describe the bug
Steps To Reproduce
Steps to reproduce the behavior:
onCompositionLoaded
.I've reviewed the source code and analyzed the differences with version 6.0.0. I would like to know why these changes were made?
The
setCompositionTask
method inLottieAnimationView
checks three conditions, and if they are thetrue
, it will return and will not execute theaddListener
below.In the
cache
method ofLottieCompositionFactory
, a newLottieTask
is recreated, but thesuccessListeners
within it are empty. Therefore, theonResult
insidenotifySuccessListeners
will not be called.The text was updated successfully, but these errors were encountered: