Set the value callback value even if the animation is not set yet
This fixed an issue where the original addValueCallback has been deferred as
a lazy composition task while the composition is loading so the animation has
not yet been set on the value callback.
Fixes
@@ -40,8 +40,8 @@ public class LottieValueCallback<T> {
}
public final void setValue(@Nullable T value) {
- if (animation != null) {
this.value = value;
+ if (animation != null) {
animation.notifyListeners();
}
}
