You must upgrade to Activity 1.2.0, Fragment 1.3.0, and AppCompat 1.3.0-alpha01 or higher to populate this correctly. ViewTreeSavedStateRegistryOwner API: A new ViewTreeSavedStateRegistryOwner.get(View) API allows you to retrieve the containing SavedStateRegistry given a View instance.SavedStateRegistry no longer saves an empty Bundle if there is no state to save.SavedStateRegistr圜ontroller now allowsĮarly attachment of the SavedStateRegistry via.Version 1.2.0-alpha01 contains these commits. ( b/220191285)Īndroidx.savedstate:savedstate:1.2.0-alpha01 and androidx.savedstate:savedstate-ktx:1.2.0-alpha01 are released. This is binary compatible and source compatible for implementations written in the Java programming language. For SavedStateRegistryOwner, this is a source incompatible change for those classes written in Kotlin - you must now override the savedStateRegistry property rather than implement the previous getSavedStateRegistry() function. The SavedStateRegistryOwner, SavedStateRegistr圜ontroller, and Recreator classes have been rewritten in Kotlin.You can now retrieve a previously registered SavedStateProvider from a SavedStateRegistry via getSavedStateProvider().Version 1.2.0-alpha02 contains these commits. ( b/220191285)Īndroidx.savedstate:savedstate:1.2.0-alpha02 and androidx.savedstate:savedstate-ktx:1.2.0-alpha02 are released. This is binary compatible and remains source compatible for implementations written in the Java programming language. This replaces the savedstate-ktx API of findViewTreeSavedStateRegistryOwner. For ViewTreeSavedStateRegistryOwner, this is a source incompatible change for those classes written in Kotlin - you must now directly import and use the Kotlin extension methods on View of and to set and find a previously set owner. The SavedStateRegistry and ViewTreeSavedStateRegistryOwner classes have been rewritten in Kotlin.Version 1.2.0-beta01 contains these commits. ( Iefc95, b/228887344)Īndroidx.savedstate:savedstate:1.2.0-beta01 and androidx.savedstate:savedstate-ktx:1.2.0-beta01 are released. The SavedStateRegistryOwner Kdocs have been updated to clarify the responsibilities and contract that the owner has on how it should implement the interface or when they should call the methods on SavedStateRegistr圜ontroller.Version 1.2.0-rc01 contains these commits. SavedStateRegistry no longer saves an empty Bundle if there is no state to save.Īndroidx.savedstate:savedstate:1.2.0-rc01 and androidx.savedstate:savedstate-ktx:1.2.0-rc01 are released.For ViewTreeSavedStateRegistryOwner, this is a source incompatible change for those classes written in Kotlin - you must now directly import and use the Kotlin extension methods on View of and to set and find a previously set owner.
0 Comments
Leave a Reply. |