Adds a manual backstack to TwoPaneLayoutNav so state can be saved between configuration changes, as well as updating the component to use NavGraphBuilder DSL instead of the custom Destination class, adding some NavOptions support to two pane mode, and adding a new navigateUpTo method to TwoPaneNavScope
๐ค Motivation and Context
Makes the navigation functionality more useful for developers, and updates the API to look more like the official Android navigation library
๐งช How Has This Been Tested?
Ran all UI tests, manually tested behavior on device
โ๏ธ Does the PR contain new tests or refactored old ones?
Refactored old tests
๐ท Screenshots (if appropriate)
๐ฆ Types of changes
[x] New feature (non-breaking change which adds functionality)
[ ] Enhancement to a current functionality
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Bug fix (non-breaking change which fixes an issue. Please add issue link here too).
โ Checklist
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] This PR contains new tests that cover the new code.
[ ] This PR refactor previous tests to cover the new code.
[ ] This PR is part of a set of PRs that build a bigger feature. If so, please, add here links to previously merged or open PRs.
๐ Description
Adds a manual backstack to TwoPaneLayoutNav so state can be saved between configuration changes, as well as updating the component to use
NavGraphBuilder
DSL instead of the customDestination
class, adding someNavOptions
support to two pane mode, and adding a newnavigateUpTo
method toTwoPaneNavScope
๐ค Motivation and Context
Makes the navigation functionality more useful for developers, and updates the API to look more like the official Android navigation library
๐งช How Has This Been Tested?
Ran all UI tests, manually tested behavior on device
โ๏ธ Does the PR contain new tests or refactored old ones?
Refactored old tests
๐ท Screenshots (if appropriate)
๐ฆ Types of changes
โ Checklist