Bug Fixes
- Fix runtime failures for
BackHandlerandPredictiveBackHandlerin apps using custom Activity classes. These composables now safely fall back toLocalOnBackPressedDispatcherOwnerwhile preserving dispatch order in apps that supportNavigationEventDispatcherOwner. I43873
New Features
- Support embedding resource as part of AppFunction response
- Allow using
FLAG_GRANT_PERSISTABLE_URI_PERMISSIONinAppFunctionUriGrant
API Changes
- Add
ResourceHolderAPI I08c1c b/447530724 - Add
AppFunctionTextResourceAPI I7d54f b/447530724 - Add
AppFunctionOneOfTypeMetadataAPI I12c67 b/449915612 - Drop Compat suffix from Service APIs. Ib9291 b/449797980 b/449797980
- Support build
AppFunctionDatafromAllOfTypeIb1176 b/447535093 - Add get/set Parcelable API(s) in
AppFunctionDataI3aec7 b/447530985
Bug Fixes
API Changes
hourInputandminuteInputproperties added to theTimePickerStateinterface. These properties are intended to hold the raw, unvalidated input from the user. The existing hour and minute properties remain and represent the last known valid time. I09d74 b/394612017
Bug Fixes
- A bug where Switch could not be used with
ReusableContentwithout animating has been fixed. I61093 b/455909150
API Changes
We've made several API-incompatible changes to simplify the installation and management of
RetainedValuesStores. Existing calls toretainandRetainedEffectare unaffected, but any customRetainedValuesStores will require a migration to be compatible with this release. If3c2f b/451921682 b/450539803RetainedValuesStoreno longer exposes low-level APIs to start/stop retention. Retention state now automatically follows the content.LocalRetainedValuesStoreProvideris now offered to installRetainedValuesStore.LocalRetainedValuesStoreshould not be provided directly. See the updated documentation and samples for more information on these changes.RetainedValuesStoreProvideris renamed toRetainedValuesStoreRegistry. This class now only exposes APIs to install and manage theRetainedValuesStores in composition.ControlledRetainedValuesStoreis replaced byManagedRetainedValuesStore.RetainedValuesStoreis now an interface.
Previously, installing a custom RetainedValuesStore may have looked like this:
val retainedValuesStore = retainControlledRetainedValuesStore()
if (active) {
CompositionLocalProvider(LocalRetainedValuesStore provides retainedValuesStore) {
content()
}
val composer = currentComposer
DisposableEffect(retainedValuesStore) {
val cancellationHandle =
if (retainedValuesStore.retainExitedValuesRequestsFromSelf > 0) {
composer.scheduleFrameEndCallback {
retainedValuesStore.stopRetainingExitedValues()
}
} else {
null
}
onDispose {
cancellationHandle?.cancel()
retainedValuesStore.startRetainingExitedValues()
}
}
}
With these API changes, this installation can be expressed with this code instead:
val retainedValuesStore = retainManagedRetainedValuesStore()
if (active) {
LocalRetainedValuesStoreProvider(retainedValuesStore) {
content()
}
}
Bug Fixes
- Transfers invalidations of the scope in movable content before moving that content out of the slot table I9d123 b/451651649
API Changes
- Add known issue b/452390376 (Auto Exposure Mode Low Light Boost (LLB)) cannot be enabled for stream use cases such as VIDEO_CALL on Pixel 10 devices. Iba480 b/452390376
Bug Fixes
- Mark specific pixel builds as fixed. I4c751 b/398591036
- Add support for specifying a list of manually tested build fingerprints for a KnownIssue. Iea9f9 b/453691379
New Features
- Initial developer release of Jetpack Compose Glimmer, design language and UI components for building augmented Android XR experiences. Designed for clarity, legibility, and minimal distraction with simplified styling, differentiated focus, and optimized elevation.
- Get started with our initial set of Jetpack Compose Glimmer components:
- Text
- Icons
- Title Chips
- Cards
- Lists
- Buttons
- Stacks (Under development)
Bug Fixes
- Moving the default
minSdkfrom API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
Bug Fixes
- The Navigation
SafeArgsplugin has been migrated to the modern Android Gradle Plugin APIs which should ensure it is compatible with all AGP 8.4.2+ releases. As a result of these changes, the output directory for files generated by the plugin has been changed to the default location provided by AGP. Ie09d6 I7c431 b/203559535 b/293920476 b/269532448 b/443261197 - Navigation
SafeArgsplugin will no longer require setting theuseAndroidXproperty when being used with AGP 9.0.0-alpha04+. I6c3a4 b/444746731 b/443106400
Bug Fixes
NavDisplaynow sets aLocalLifecycleOwnerat theScenelevel that allows scene authors to determine whether all transitions have finished by checking that theLifecycle.StateisRESUMED. The behavior of theLocalLifecycleOwnerat theNavEntrylevel is unchanged: it also remains capped atSTARTEDif a transition is in progress and is additionally capped atCREATEDif thatNavEntryhas been popped from the back stack and is in the process of animating out. I03113 b/454045829
Bug Fixes
- Improve
TimePickernumber visibility on small screens I70fbe