Skip to content

Commit

Permalink
[Docs][Predictive Back] Add note to clarify that automatic back handl…
Browse files Browse the repository at this point in the history
…ing in components is only for API 33+

Related to #3637

PiperOrigin-RevId: 574505672
  • Loading branch information
dsn5ft authored and drchen committed Oct 19, 2023
1 parent 2c53952 commit ad2b5f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/foundations/PredictiveBack.md
Expand Up @@ -58,6 +58,12 @@ animations:
- [Side sheet](../components/SideSheet.md#predictive-back) (automatically for modal, standard and coplanar require integration)
- [Navigation drawer](../components/NavigationDrawer.md#predictive-back) (automatically for `NavigationView` within `DrawerLayout`)

**Note:** The Material Components above only automatically handle back on API
Level 33+, and when the `android:enableOnBackInvokedCallback` manifest flag to
`true`. This is to be consistent with the behavior of other AndroidX and
Framework views, as well as to avoid taking precedence over any pre-existing
back handling behavior that has already been implemented by apps.

Future predictive back support is planned for the following Material Components:

- Navigation bar / Bottom navigation view
Expand Down

0 comments on commit ad2b5f8

Please sign in to comment.