AndroidX Activity 1.8.0-alpha03

1.8.0-alpha03
Added 2
  • 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
Changed 1
  • The ActivityResultRegister now uses Kotlin Random instead of Java Random
Fixed 1
  • Fixed an issue where Fragments were incorrectly invalidating MenuHosts and causing other menus in the Activity to have unexpected behavior
Deprecated 1
  • 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

View original

Upgraded? How did it go?

Discussion