- Added ComponentActivity.setUpEdgeToEdge() to easily set up the edge-to-edge display in a backward-compatible manner
- ComponentDialog and ComponentActivity now contain public API initViewTreeOwners() to be used to initialize all view tree owners before setting the content view
- The ActivityResultRegister now uses Kotlin Random instead of Java Random
- Fixed an issue where Fragments were incorrectly invalidating MenuHosts and causing other menus in the Activity to have unexpected behavior
- ComponentActivity.onBackPressed() has been deprecated in favor of the APIs for handling back; developers should utilize the OnBackPressedDispatcher rather than overriding this method inferred, marked in the notes below
1 change to check, marked in the notes below
From AndroidX Activity
New Features Added ComponentActivity.setUpEdgeToEdge() to easily set up the edge-to-edge display in a backward-compatible manner. API Changes ComponentActivity.onBackPressed() has now been deprecated in favor of the APIs for handling back. Developers should now utilize the OnBackPressedDispatcher, rather than overriding this method. ( Ibce2f, b/271596918) ComponentDialog and ComponentActivity now contain public API initViewTreeOwners() to be used to initialize all view tree owners before setting the content view. ( Ibdce0, b/261314581) Bug Fixes Fixed an issue where Fragments were incorrectly invalidating MenuHosts and causing other menus in the Activity to have unexpected behavior. ( I9404e, b/244336571) Other Changes The ActivityResultRegister now uses Kotlin Random instead of Java. ( I4d98f, b/272096025) deprecated · inferred