Click loadButton again, it's not work. Reproduce. However, the issue did not exist in the version 6.0.0.
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 in LottieAnimationView checks three conditions, and if they are the true, it will return and will not execute the addListener below.
In the cache method of LottieCompositionFactory, a new LottieTask is recreated, but the successListeners within it are empty. Therefore, the onResult inside notifySuccessListeners will not be called.
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
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.