Dependency Changes
- Activity now depends on NavigationEvent Alpha04
New Features
- Support smart items in context menu and selection toolbar.
API Changes
- Fixed a bug where certain hardware keyboards or TV remotes fail to move cursor in new
TextFieldsusing the directional keys, and instead switch focus to another composable. AddedComposeFoundationFlag.isTextFieldDpadNavigationFixEnabledto be able to disable this fix for the time being if it causes an undesired behavior in an irrecoverable way. Ie1922
Bug Fixes
- Fix issue where sticky headers were not sticking if a pinned item was present. I9198d b/385006133
TextObfuscationMode.RevealLastTypednow follows the system setting “TEXT_SHOW_PASSWORD”. I41c0c- Fixed a bug where
BasicTextFieldwrongly shows a “Clipboard pasted” warning when the text toolbar opens for the first time. I5fda2
New Features
- Update button group's animation to animate to 75% of the animation when clicked instead of pressed. 593942a b/423596967
Bug Fixes
- Fixed an issue where a carousel item could, in some cases, exceed the large element size during layout calculations, that cut the whole widget. I1c3d7 b/397489534
- Fixed jumping past
beforeContentPaddingwhen scrolling carousels with start and end shift offsets that overlapped. c3d5f3a b/420618979 - Update
SwipeToDismiss’ enabled behavior to observe settled state instead of current. Restores existing behavior where anchor behavior is only disabled when the component is settled at a dismissed state. 3844e07 b/425006844 ExposedDropdownMenu’s popup menu can now be opened via keyboard input. Also fix the menu is now reachable via keyboard for the editable variation. 46ead03
Bug Fixes
- Reduced the reference lifetime of values in the slot table between compositions. There are cases where a reference in a slot table could last a frame longer than necessary. I49e74 b/418516940
- Remove Kotlin mangle for Hot reload methods. Ic56a3 b/426871325
New Features
- Support Emoji 16.0 updates
- Add “emoji” suffix to the content description to make sure that we have a consistent accessibility behavior across all emoji picker apps.
Bug Fixes
- Enables support for 16KB page size.
API Changes
- The
hiltViewModel()APIs for Compose have been moved to a new artifact (androidx.hilt:hilt-lifecycle-viewmodel-compose) and package (androidx.hilt.lifecycle.viewmodel.compose) such that they can be used without transitively depending onandroidx.navigation. Ifb222 b/328104152
Use the 1.8.0 stable version.
Bug Fixes
- Make the selection of a selected route a no-op a2953f.
Bug Fixes
- Fixed an issue that caused
NavEntriesthat were instantiated using single top to never go beyond CREATED in theirLifecycle.State. I043ba b/421095236
Behavior Changes
- The
NavEntry's state is now strictly based on the current list of decorators passed to theNavDisplay. This means that decorators should be swapped along your back stacks in the case of multiple back stacks in order to preserve the state of the NavEntries on the back stack. Otherwise, the states will be cleared as if the entries were popped (instead of a swap). I7a759 b/428033667
Bug Fixes
- Used
implementedInJetBrainsForktonavigationevent-composeand added acommonStubstarget to match Compose conventions. Change requested by JetBrains. f60c79 - Fixed application of the Compose compiler plugin for Kotlin/Native to ensure correct stub generation. No impact on public APIs or behavior. 1890c9
New Features
- Paging has added the following KMP targets: watchos, tvos, mingwX64, watchosDeviceArm64, and linuxArm64. I237dd Ia62b3 b/368046982 Icf15d b/364652024 I139d3 b/338268719
Bug Fixes
- Android unit tests pulling in Paging 3.3 or later will no longer throw from
PagingLoggerIa9400 b/331684448 - Fixed bug where
RecyclerViewthrowsIndexOutOfBoundsExceptionwhen user scrolls while updatingRecyclerViewId1f16 b/381024738 - Fixed bug where paging was unable to trigger more loads when refreshing while scrolling. I60ca5 b/352586078
- Fixed crash when scrolling while refreshing Paging items. I8c65a b/347649763
Bug Fixes
- Updated the documentation to clarify usage of
Modifier.edgeSwipeToDismissI78cb5 - Addressed bug where multiple revealed items could be shown with
SwipeToRevealin lazy lists I1d4f6 - Container shapes in
TransformingLazyColumnare now scaled, in order to avoid clipping the contents. I9221a - The
TimePickerandDatePickerlabel for hour/minute/second or year/month/day now has heading semantics for screen readers I77d8b - Removed the pause between loops in the indeterminate
CircularProgressIndicatorIaf0bb - Fixed an animation bug in
TransformingLazyColumnwhen items are removed. I73034 - Corrected handling of anchor items in
TransformingLazyColumnwhen items are removed. I841a8 PickerGroupnow animates the Pickers horizontally when autocentering is turned on and the selected (centered) picker is changed. Ic82c4
Bug Fixes
- Updated the documentation to clarify usage of
Modifier.edgeSwipeToDismissI78cb5 - Addressed bug where multiple revealed items could be shown with
SwipeToRevealin lazy lists I1d4f6 - Container shapes in
TransformingLazyColumnare now scaled, in order to avoid clipping the contents. I9221a - The
TimePickerandDatePickerlabel for hour/minute/second or year/month/day now has heading semantics for screen readers I77d8b - Removed the pause between loops in the indeterminate
CircularProgressIndicatorIaf0bb - Fixed an animation bug in
TransformingLazyColumnwhen items are removed. I73034 - Corrected handling of anchor items in
TransformingLazyColumnwhen items are removed. I841a8 PickerGroupnow animates the Pickers horizontally when autocentering is turned on and the selected (centered) picker is changed. Ic82c4
New Features
- Updated
RemoteActivityHelper.startRemoteActivityto use a new public Wear SDK API (startRemoteActivity) if it’s available (from Wear 6 onwards). Id1e77
New Features
- A new API to set HTTP header name-value pairs on requests to specific origins.
TheProfile.setOriginMatchedHeadermethod lets the application specify that the header name and value should be set on all HTTP/HTTPS requests to the origins that match the provided allowlist when sent from WebViews and service workers that use the given Profile. The API only allows a single mapping for each header name, and will throw an exception if the header name is already set.
UseProfile.clearOriginMatchedHeaderto remove an existing mapping, andProfile.clearAllOriginMatchedHeadersto remove all mappings. Ida7f1 b/419469873 - A new API to access and set cookies as part of
shouldInterceptRequestcallbacks for WebView and Service Workers.
App developers who currently access theCookieManagerAPI as part of theirshouldInterceptRequestcan now enable cookie headers directly by callingsetIncludeCookiesOnShouldInterceptRequest. This will then cause WebView to add aCookieheader to the WebResourceRequest.getRequestHeaders() map which will be the exact cookies that apply to the request. This will also correctly handle any partitioned cookies.
Apps can provideSet-Cookieheader values through the newly addedWebResourceResponseCompat.setCookiesAPI. TheSet-Cookievalues added there will be processed by WebView as part of the response handling. Idbfd1 b/414769380 - A new experimental API to warm up the renderer process for a
Profile.
This API can be used by applications with complex WebView lifecycles to ensure that the renderer process is running, even if all WebView instances have been destroyed. Ia8fc8
API Changes
- Add a new method to the experimental Navigation interface to provide the URL of the navigation. I1c6c0
- Update the Profile Prefetch feature name to clarify that the Prefetch API can now be invoked on a background thread. I7c83a