| MotionAwareFragmentNavigator.kt |
A [FragmentNavigator] that strips navigation transition animations when the user has enabled reduced-motion
accessibility settings on their device.
When either [Settings.Global.TRANSITION_ANIMATION_SCALE] or [Settings.Global.ANIMATOR_DURATION_SCALE] is set to 0,
all enter/exit/popEnter/popExit animations are removed from the [NavOptions] before delegating to the default
[FragmentNavigator.navigate].
@param context used to query the system animation scale settings.
@param fragmentManager the [FragmentManager] for performing fragment transactions.
@param containerId the resource id of the container in which fragments are hosted.
|
3110 |
- |
| NavHostFragmentCompat.kt |
Compat [NavHostFragment] for use with our navigation graph.
This class exists as a solution to https://bugzilla.mozilla.org/show_bug.cgi?id=1812063 where our app was not
respecting the system settings for screens where we define a navigation animation in the nav_graph.xml
|
1101 |
- |