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

Disallow null animations on AnimatedNavHost #873

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

jbw0033
Copy link
Collaborator

@jbw0033 jbw0033 commented Nov 12, 2021

The AnimatedNavHost should always provide some value for animations as
it is the top of the hierarchy for all destinations. If no animations
are desired, then EnterTransition.None or ExitTransition.None should be
passed in, not null.

Fixes #856

The AnimatedNavHost should always provide some value for animations as
it is the top of the hierarchy for all destinations. If no animations
are desired, then EnterTransition.None or ExitTransition.None should be
passed in, not null.

Fixes google#856
AnimatedNavHost should not allow you to pass nullables.

Ensure that AnimatedNavHost properly goes up the hierarchy to retrieve
animations.
Using firstNotNullOfOrNull in place of mapNotNull and firstOrNull.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[navigator-animation] NullPointerException in AnimatedNavHost
3 participants