New Features
EdgeToEdgeis now re-invoked on configuration changes to ensure that the system status bar color is properly updated. Id1381 b/364713509
API Changes
ComponentActivitynow implements theOnPictureInPictureUiStateChangedProviderinterface which means it can now integrate with the newcore:core-pipartifact that allows allow any component to receive picture-in-picture ui state change events. I4df5c b/441310308
Bug Fixes
- From Activity 1.12.2: Fixed an issue where manually setting
isEnabledon a lifecycle-awareOnBackPressedCallbackwould override theLifecyclestate, potentially causing crashes. I7d898 b/461999811
API Changes
- Added
.toScatterSet()and.toScatterMap()extensions. These provide a read-only alternative to the mutable conversion functions and return allocation-free singletons when the source collection is empty. I1769a b/459867876 - Replace the
MutableScatterMap(source)andMutableScatterSet(source)pseudo-constructors with standard.toMutableScatterMap()and.toMutableScatterSet()extension functions. This aligns with Kotlin conventions for collection conversions. Ic9ca6 b/459867876 - Add
MutableScatterMap(Map)andMutableScatterSet(Set)factory functions. Use these functions to easily create a scatter collection pre-filled with the contents of an existing collection. I51d70
Bug Fixes
- This library now uses JSpecify nullness annotations, which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler) I05181 b/326456246
New Features
- Introduced a new set of visual debugging capabilities that allows visualizations of information related to shared elements and
Modifier.animatedBounds. Such information includes: target bounds, the trajectory of the bounds animation, number of matches found, whether the transition is active, etc.
API Changes
- Added a new api
LookaheadAnimationVisualDebugging,CustomizedLookaheadAnimationVisualDebugging, andLookaheadAnimationVisualDebugConfigto help debug animated bounds and shared element animations. Id5575 b/390011686 b/466169919
Bug Fixes
- Require shared transition root to be placed before querying bounds. 77d59c
Bug Fixes
- Fix a crash when text selection extends from one Text instance to another that are aligned horizontally. I351311, b/439758956
Bug Fixes
- Fix a memory leak in
LazyStaggeredGridwhen used insideLookaheadScopeI286ad
API Changes
- Updates
TopAppBarDefaults(enterAlwaysand pinned behaviors) to supportlazyListState,scrollState, andreverseScrolling. This fixes layout direction issues and correctly handles initially scrolled content. I9d5c2 b/262234750 - Add
contentPaddingandhorizontalSpacingparameters toAssistChipandElevatedAssistChip. AddHorizontalSpacingandContentPaddingdefaults toAssistChipDefaults. I2ac90 b/304853782 - The
DatePickerAPIs using Java Time classes are no longer tagged as experimental. I5039c b/457537971
Bug Fixes
- Fix a
DatePickerdate-formatting crash on API 23 I67a94 b/452713222 - Fixed visual alignment bug in the fancy animated indicator sample when used with scrollable tab rows. Iae0f3 b/466790304
- Fixed an issue where the
TimePicker's AM/PM selector did not use text style defined by Material Design specification. Ie908a b/469788786 - Fixed a crash in
HorizontalFloatingToolbarthat could occur in landscape mode when the on-screen keyboard was displayed. Ia13c1 b/466692323 - Fixed an issue where the
TopAppBartitle could overlap with itsactionswhen nonavigationIconwas provided. The title is now correctly constrained to its available space. I2ba97 b/428697836 - Support RTL with pane expansion anchors I0770b b/467775639
Bug Fixes
- Support RTL with pane expansion anchors I0770b b/467775639
- Fix the issue that shadows of levitated panes are not clipped 375cf1 b/470517507
API Changes
- Introduced the
SnapshotFlowManagerclass and added an optionalSnapshotFlowManagerparameter tosnapshotFlow, giving users the ability to optimize the number of snapshot apply observers that get registered. I6289b b/446746211
Bug Fixes
- Added a trace annotation for movable content insertion Ibf176
Bug Fixes
- Fix a crash with pausable composition when animated with
LookaheadScopeI7e649 b/469669851 - Fixed a bug in Jetpack Compose
Popupwhere absolute coordinates of the anchor bounds were being passed to thePopupPositionProvider, leading to incorrect popup placements. Popup positioning calculations now use the correct relative coordinates.1f7edf b/469940907
API Changes
- Removed the
ComposeUiTestFlags.isStandardTestDispatcherSupportEnabledflag. The v2run*ComposeUiTestandcreate*ComposeRuleAPIs now useStandardTestDispatcherby default. To continue usingUnconfinedTestDispatcher, you can use the deprecated API variants; however, we strongly recommend migrating to the v2 APIs for better control over coroutine execution. Iecc9c b/455601592 - Introduced
androidx.compose.ui.test.junit4.v2.create*ComposeRuleAPIs. These new APIs use aStandardTestDispatcherby default to better simulate production behavior where coroutines are queued rather than executed immediately. See the migration guidance for more information. I1870e b/254115946 - Introduced
androidx.compose.ui.test.v2.run*ComposeUiTestAPIs. These new APIs use aStandardTestDispatcherby default to better simulate production behavior where coroutines are queued rather than executed immediately. See the migration guidance for more information. I4f782 b/254115946 - Common structures within
ComposeViewcan now be shared. WhenComposeUiFlags.isSharedComposeViewContextEnabledis true, values are automatically shared. When false, they are not shared. I0d1b4 b/463540495 b/460468959 b/461503366 b/463641813
Bug Fixes
- Fixes bug where removing all content from the
ComposeViewdoesn't remove the drawn content. I8b382 b/299503084 - Fix a crash with pausable composition when animated with
LookaheadScope. I7e649 b/469669851 - Resolved an issue where transmitting excessively long strings to the Autofill service triggered a crash. To prevent this, text is now automatically truncated to a valid length prior to being sent.
- Fixes bug where a hover exit can cause a click under very specific conditions a3d5a0f
- Fixes stylus hover event dispatching for tests and preps mouse tests for new stylus tests. 9ca9bc9
- Adds support for unplacing/placing UI elements with pointer input. (d0742b0, b/BUD_ID)
- Fixed a bug in Jetpack Compose
Popupwhere absolute coordinates of the anchor bounds were being passed to thePopupPositionProvider, leading to incorrect popup placements. Popup positioning calculations now use the correct relative coordinates.1f7edf b/469940907
API Changes
- Add support for
getBoundingRectsinWindowInsetsCompatI24f18 onCanUserUpdateSilenceis now an optional Ibb0c2- Extend
PictureInPictureProviderinterface to include alsoOnUserLeaveHintProviderI3125b b/462178249 - Deprecated
PermissionsDelegateCompat.onActivityResultwhich is no longer called byFragmentActivity. I59197 b/460267600 - Abstract the Picture-in-Picture functions from
ComponentActivityinto a dedicatedPictureInPictureProviderinterface I068a3 b/462178249 - Add APIs to inform surfaces on whether the mic should be shown or not I55acf b/445237449
- Add
DisplayShapeCompatAPIs I490d4 b/410851992 PictureInPictureParamsCompatis introduced to wrap the frameworkandroid.app.PictureInPictureParamsclass. I8af9e b/458803858- Add support for
IntentSenderinto androidx-main am: 127eef7acc am: b4b1111b77 I5b30b - Add support for
IntentSenderinto androidx-main am: 127eef7acc I849b9 - Add support for
IntentSenderinto androidx-main - Add support for
IntentSenderIa998d b/445163724 - Add new APIs to get and set selection I05ec4 b/362784540
- Add known issue 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
- Add new APIs to get and set sort direction I658de b/394670064
- Added new APIs to
CallControlScopefor video call management:getVideoState()to observe audio/video state andrequestVideoState(int)to request changes to the video state. I51065 b/333074774 - Add missing
AccessibilityNodeInfoCompatchecked state constants. I40b4c - Fix bug for missing
AccessibilityNodeInfoCompatexpanded state intdef. I75106 b/435252704 BuildCompat.isAtLeastB1: remove@RequiresApiI42fe2 b/430210979- Fix bug for missing
AccessibilityNodeInfoCompatexpanded state constants. I1b1cd b/435252704 CallsManager.registerAppWithTelecomnow includes a new optionalbackwardsCompatSdkLevelparameter. This gives developers control over which underlying platform implementation (legacyConnectionServicevs. modern transactional APIs) is used. The value defaults to 33, ensuring modern APIs are used by default on SDK 34+, but can be set higher to force the legacy path on specific SDK ranges. Ib9571 b/444266242- Added
CallAttributesCompat.isLogExcludedto allow specifying whether a call should be excluded from the call log Ia2a3a b/447166999 - Add missing content change types. I52a3c
- Add
BuildCompat.isAtLeastB1for checking if an API added in Baklava, minor release 1 (SDK 36.1) is available. I78513 b/430210979 - Introducing new API
RangingResultFailureto report ranging session failure and reason, Ranging Initiation failure will also useRangingResultFailurecallback previously reported throughRangingResultPeerDisconnected - Introducing new API
RangingResultFailureto report ranging session failure and reason, Ranging Initiation failure will also useRangingResultFailurecallback previously reported throughRangingResultPeerDisconnectedIf3715 - Deprecated the
bundleOf(...)extension function, which does not provide compile time type safety and may lead to crashes at run time. Instead, useBundlemethods directly. I48af2 b/434825212
Bug Fixes
- Add the Pixel Dec release to the list of fixed build fingerprints in KI_398591036 I65f51 b/398591036
- Add the Pixel Nov release to the list of fixed build fingerprints in KI_398591036 I60c10 b/398591036
- Add the Pixel Oct release to the list of fixed build fingerprints in KI_398591036 I6438c b/398591036
- Removed references to
FingerprintManagerclass fromFingerprintManagerCompatand updated all methods to return false or no-op. I0360b b/330524057 - Fix the code links in documentation for KI_452390376 I9a554 b/454020407
- 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
The PiP Jetpack library is introduced to address several challenges in Android's Picture-in-Picture (PiP) mode:
- OS Fragmentation: The library handles differences in PiP API calls across Android versions, such as
enterPictureInPictureModebefore Android S andisAutoEnterEnabledafter. - Incorrect PiP Parameters: It provides a unified solution for setting correct PiP parameters, especially for playback, to ensure smooth animations (e.g., source rect hint).
- Fragmented PiP State Callbacks: The library consolidates
onPictureInPictureModeChangedandonPictureInPictureUiStateChangedinto a single, unified callback interface for simplified state management.
API Changes
PictureInPictureDelegateclass that helps setup PiP (Picture-in-Picture) functionalities on behalf of the givenPictureInPictureProviderinstance 8cf9588.PictureInPictureDelegate.onPictureInPictureEventinterface that provides a unified callback for application to listen on Picture-in-Picture events 8cf9588.
Bug Fixes
- Add
PictureInPictureParamsValidatorclass to validate the app providedPictureInPictureParamsCompatI89b4d b/470149490 - A dedicated
:core:core-piplibrary is introduced to help app developers implementing the Android PiP (Picture-in-Picture) feature I8ebc5 b/462178249
API Changes
- Added a utility copy function that can be used to update data for Preferences
DataStore. I70a18 b/467120382
Bug Fixes
- Resolved an issue where binary data could be malformed during storage by replacing UTF-8 string handling with Base64 encoding for Web. Ie3178 b/473790107
- Glance Wear is a library for building Widgets for Wear OS using
RemoteCompose.
New Features
- Added support for multiple item decorations per item for
VerticalStack22daab3 and support for generic decoration shapes 033e015.
API Changes
- Added
VerticalListDefaultsto provide recommended values for theVerticalListcomposable. I07b1a b/448364605
Bug Fixes
- Added initial focus handling to
VerticalStackto make sure the top item gets focus when focus enters the stack. This fixes an issue where initial focus gets assigned to the next item resulting in an immediate scroll to that item. bd69841 - Fixed a bug in
VerticalStack’sItemDecorationNode, where the decorations were not updated in the item scope when the modifier node is reused. 7ec2c94
Bug Fixes
Fixes missing IntentMonitor for startActivity with user overload. Now it's possible to intercept intents started with startActivityAsUser.
Adds missing override of an existing callActivityOnCreate method with PersistableBundle.
API Changes
- Update to minSdkVersion 23 and remove all related logic for SDKs < 23
New Features
SceneStrategynow supports nesting scenes via a newcalculatedScene(Scene)function. This means thatSceneStrategy’s can be customized to provide additional functionality to other scenes. I5df7c b/440333896
New Features
- Removed support for the following KMP platforms:
macosX64,iosX64,watchosX64, andtvosX64to align with Jetbrains deprecation of the macosX64 targets. 7cb9a4
New Features
- Add min/max font size for CoreText. I7bd3c
API Changes
- Expose minimal public API for Glance Wear infra. I7b4b9 b/467532762
- Return
CapturedDocumentfromcaptureSingleRemoteDocumentI5a283 b/467532762
Bug Fixes
- Fix scrolling position after relayout + add support for edge effects 6d4551
Important changes since 1.6.0:
- Library now has
minSdk23. - Fixed
NullPointerExceptionwhen using transitions in XR mode b/427115593 - Fixed an issue with
FragmentManagerno being in the proper state after pop and replace operations in the same frame that could cause a crash in conjunction with predictive back. I50ad1
API Changes
RotaryScrollableDefaults.snapBehaviorhas been updated to take a floatsnapSensitivityparameter, andPagerScaffoldDefaultsnow makes public the recommended defaultSnapPositionalThresholdandHighSnapPositionalThresholdvalues for use withPagerDefaults.snapFlingBehavior. I7e11c b/449949891- Added snapping support to
TransformingLazyColumnfor both touch and rotary input. When configuring snapping, It is recommended to provide bothflingBehaviorusingTransformingLazyColumnDefaults.snapFlingBehaviorandrotaryScrollableBehaviorusingRotaryScrollableDefaults.snapBehaviorfor a consistent experience. I5326f b/422455104 - Introduced
LocalAmbientModeManager, a new composable to easily define different UI and behavior for interactive and ambient modes. I00161 b/427724331
Bug Fixes
- Fixed an issue where lists with rotary snap behavior would not bounce back after overscrolling. I05216 b/470317969
- Fixed an issue with the ripple effect for the increment and decrement buttons in Material3 Slider. The ripple now correctly extends the full width of the slider component. I8c0c4 b/378658409
API Changes
- We have deprecated Material3 image helpers in favour of new overloads that are using
ProtoLayoutScopeand better resources handling concept whereImageResourcecan be directly inlined in the layout itself, removing the need foronTileResourcesRequestmethod for resources mappings. For the best experience, use it withandroidx.wear.tiles.Material3TileServiceadded in Wear Tiles 1.6-alpha04 version. I8198c b/440376391
API Changes
- A new service for creating tiles called
Material3TileServicehas been added to the Tiles library. - This provides better experience in creating
TileService, as it automatically createsMaterialScopeneeded for Material3 components and layout, which includesProtoLayoutScopefor better resources handling and performance improvements. - It is more Kotlin friendly, with 1 suspend function to provide both tile layout and resources inlined within the layout components.
- In order to support new service for Tiles with better resources handling, the compile SDK version is increased to 35. I1ff29 b/470048768
New Features
- Expanded Test Suite: Added more comprehensive tests to improve library stability.
- Color Conversion Extension: Added extension functions to easily convert Android Color values into
GPUColor. - Unified Callback Interface: A new
GPURequestCallbackinterface has been added to handle asynchronous operations more consistently across the library. - Metadata: The library AAR now includes a
dawn_build_metadata.jsonfile in its assets. This file contains the specific Dawn Git SHA-1 commit used for the build.
API Changes
- Callback Consolidation: Several specific callback interfaces have been removed in favor of the new generic
GPURequestCallback.
New Features
- Added new Web Performance Metrics APIs
onFirstContentfulPaintMillis,onLargestContentfulPaintMillisandonPerformanceMarkMillistoNavigationListener. These APIs allow developers to track FCP/LCP and performance marks directly in their app instead of using JavaScript to retrieve them. I50266 b/432696062 - Adds
NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONStoWebViewFeature, which can be used to determine whetherNavigation#getPagewill return null on same-document navigations. I3a2aa
Bug Fixes