Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass LottieComposition to all content when it is generated #2167

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

gpeal
Copy link
Collaborator

@gpeal gpeal commented Nov 14, 2022

This allows GradientFill to access the composition directly. Previously, when accessed through LottieDrawable, there was a potential race condition that caused LottieDrawable.getComposition() to be set to something else externally before the GradientFill content was able to access it.

Fixes #2159

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit ea4ec68 into master Nov 14, 2022
@gpeal gpeal deleted the gpeal/gradient-fill-null-composition branch November 14, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

com.airbnb.lottie.LottieComposition.getDuration()' on a null object reference
2 participants