Skip to content

Commit ad2b5f8

Browse files
dsn5ftdrchen
authored andcommittedOct 19, 2023
[Docs][Predictive Back] Add note to clarify that automatic back handling in components is only for API 33+
Related to #3637 PiperOrigin-RevId: 574505672
1 parent 2c53952 commit ad2b5f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎docs/foundations/PredictiveBack.md

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ animations:
5858
- [Side sheet](../components/SideSheet.md#predictive-back) (automatically for modal, standard and coplanar require integration)
5959
- [Navigation drawer](../components/NavigationDrawer.md#predictive-back) (automatically for `NavigationView` within `DrawerLayout`)
6060

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

6369
- Navigation bar / Bottom navigation view

0 commit comments

Comments
 (0)
Please sign in to comment.