Closed u13 closed 4 months ago
Did you set your own drawable on LottieAnimationView (like your own resource or something)?
Did you set your own drawable on LottieAnimationView (like your own resource or something)?
No, it's just:
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie_animation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
Lottie parses compositions synchronously. If you are setting an animation for the first time, the duration won't be synchronously available. I just did a test where I logged the duration in the callback for LottieAnimationView.addLottieOnCompositionLoadedListener
and it returned the correct duration.
If we go inside of
LottieAnimationView
, we see that:and
composition == null
because:Most probably this bug appeared after merging this PR #2468