April 23, 2025

Important changes since 1.7.0

  • Important changes in version 1.8.0 are covered in this blogpost
  • New Modifier.animateBounds API for animating size and position changes within a lookahead scope. 94b939
  • Finalized APIs for Keyframes with Arcs and Splines 89e119
  • Supported Lookahead in LazyGrid and Pager. This includes differentiating lookahead pass versus approach pass in scrolling, item composition/disposal, and item animation, and uses lookahead pass for source of truth for scrolling, and item animation target.
  • Updated sharedElement parameter naming from state to sharedContentState for consistency across shared element APIs. 9e7df5
  • AnimatedImageVector suite of APIs are now stable.69d7e0

Behavior Changes

  • Lint checks shipped with Compose now require a minimum AGP version of 8.8.2. If you are unable to upgrade AGP, you can instead upgrade Lint on its own by using android.experimental.lint.version=8.8.2 (or a newer version) in your gradle.properties. To run Compose lint checks inside the IDE, Android Studio Ladybug or newer is required.

New Features

  • Improved scrolling performance for shared elements ea4f1f

API Changes

  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed. Idb6b5
  • TabRow and ScrollableTabRow are deprecated in favor of Primary and Secondary variants of each. Primary and Secondary tab rows are more performant and accurate to spec. I918e2
  • Added LocalResources composition local to query Resources. Calling LocalResources.current will recompose when the configuration changes, so calls to APIs such as stringResource() will return updated values I50c13 b/274786917

Bug Fixes

  • Ensure shared elements are dropped from the overlay when the transition is finished 35f359
  • Eliminate extra recomposition in Transition 988923
  • Fix child transition interruption handling 8aed52
  • Ensure transition is reset when a new TransitionState is provided 57820a

External Contribution

  • From Compose 1.8.1: End animations in SeekableTransitionState if already past new duration by Steven Schoen. 0c832c

Behavior Changes

  • Lint checks shipped with Compose now require a minimum AGP version of 8.8.2. If you are unable to upgrade AGP, you can instead upgrade Lint on its own by using android.experimental.lint.version=8.8.2 (or a newer version) in your gradle.properties. To run Compose lint checks inside the IDE, Android Studio Ladybug or newer is required.

  • Breaking change: clickable, combinedClickable, selectable, toggleable, and triStateToggleable overloads without an Indication parameter now only support IndicationNodeFactory instances provided using LocalIndication. This change will apply when you recompile your usages of these modifiers using this version of Compose. Binary / transitive dependencies are not affected. If you are providing a deprecated Indication implementation to LocalIndication, and using these APIs, this will introduce a crash at runtime. This behavior change is needed to enable improved performance, and allow Composable functions using these modifiers to skip during recomposition. You can use ComposeFoundationFlags.isNonComposedClickableEnabled=false to temporarily opt-out of this behavior change, to enable upgrading Compose without being blocked on this migration. This flag will be removed after one stable release. To resolve, migrate any deprecated Indication implementations to use IndicationNodeFactory instead. You can also use the overloads with an explicit Indication parameter - these overloads will continue to support non-IndicationNodeFactory instances of Indication, although this is not recommended for performance reasons. I6bcdc b/316914333

API Changes

  • Introduce API for creating custom bullet lists through AnnotatedString I1d066 b/383269496 b/139326648
  • Allow Compose to trigger ViewTreeObserver.OnScrollChanged. This behavior is introduced under the flag isOnScrollChangedCallbackEnabled. We also introduced an extension function of DelegatableNode dispatchOnScrollChanged. I34b9d b/238109286
  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed Idb6b5
  • Added lint check support for TextFieldState to make sure it is remembered inside composition. Consider using rememberTextFieldState instead. I53d74
  • Added lint check support for FocusRequester to make sure it is remembered inside composition I6bf91
  • Added lint check support for BringIntoViewRequester to make sure it is remembered inside composition. Ibfba6
  • Introduced scopes for schedulePrefetch calls in grids and lists strategies to align with the LazyListPrefetchState capabilities of providing size and index info. Iad80c
  • Breaking change: clickable, combinedClickable, selectable, toggleable, and triStateToggleable overloads without an Indication parameter now only support IndicationNodeFactory instances provided using LocalIndication. This change will apply when you recompile your usages of these modifiers using this version of Compose. Binary / transitive dependencies are not affected. If you are providing a deprecated Indication implementation to LocalIndication, and using these APIs, this will introduce a crash at runtime. This behavior change is needed to enable improved performance, and allow Composable functions using these modifiers to skip during recomposition. You can use ComposeFoundationFlags.isNonComposedClickableEnabled=false to temporarily opt-out of this behavior change, to enable upgrading Compose without being blocked on this migration. This flag will be removed after one stable release. To resolve, migrate any deprecated Indication implementations to use IndicationNodeFactory instead. You can also use the overloads with an explicit Indication parameter - these overloads will continue to support non-IndicationNodeFactory instances of Indication, although this is not recommended for performance reasons. I6bcdc b/316914333
  • Introduce a flag for controlling the automatic nested prefetch behavior: isAutomaticNestedPrefetchEnabled I8d448
  • Introduce an overload for LazyGridState and rememberLazyGridState that takes a LazyLayoutCacheWindow. I51151
  • Adds Rulers for Window Insets. Adds DerivedRuler to allow a Ruler to be calculated from another Ruler. Modifies PlacmentScope to implement Density. I658bc b/359260964
  • Added a zero arg WindowInsets() factory function to easily create empty WindowInsets. I65f62 b/395311689
  • Added PaddingValues.Zero for an empty PaddingValues. If193e b/386255688

Bug Fixes

  • The state overload of BasicTextField will keep the cursor scrolled into view when its size changes. I0eb41 b/406187741
  • Updated onVisibleItemsUpdated APIs in LazyListPrefetchStrategy and LazyGridPrefetchStrategy to inform about initial state. If2cfa

Behavior Changes

  • Lint checks shipped with Compose now require a minimum AGP version of 8.8.2. If you are unable to upgrade AGP, you can instead upgrade Lint on its own by using android.experimental.lint.version=8.8.2 (or a newer version) in your gradle.properties. To run Compose lint checks inside the IDE, Android Studio Ladybug or newer is required.

API Changes

  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed. Idb6b5
  • Text field decoration box APIs are no longer experimental I7480f b/269651160
  • Deprecate runWithTimingDisabled in favor of runWithMeasurementDisabled, which more clearly describes the behavior - all metrics are paused. Additionally, expose the MicrobenchmarkScope superclass since redeclaring the runWithMeasurementDisabled function to open access isn't possible, since it's inline. I9e23b b/389149423 b/149979716

Bug Fixes

  • ExposedDropdownMenu is binary compat with older versions. I133f7
  • Fixed a crash at the progress and loading indicators in case a Float.NaN is passed in as a progress. I4fa96 b/352364576

API Changes

  • isAppearanceLightStatusBars and isAppearanceLightNavigationBars reintroduced to ModalBottomSheetProperties as android only params. Id4bc0
  • Add an AppBarRow composable, that handles overflow of items that would fit outside its bounds. I742bd
  • Update the the DatePicker and DateRangePicker API for requesting a focus when switching to a date-input mode. We've replaced the requestFocus boolean parameter with an optional focusRequester param that takes a FocusRequester. I14b69
  • Remove modifier and interaction source from the default clickable and toggleable items. Have it as an implementation detail instead. I95ed6
  • Updated ButtonGroup to overflow into a dropdown menu when there are too many buttons to fit on the screen. I7b88b

Bug Fixes

  • Bottomsheet now consumes top insets when smaller than current offset. This allows users to provide top insets for expanded behavior. BottomSheetDefaults.windowInsets now includes WindowInsets.safeDrawing.Top. I0ab67 b/321877275 b/336962418 b/342093067
  • Enabled enter/exit animations (fade/slide) for Chip leading icons/avatars and trailing icons when they are added or removed. This primarily benefits selectable Chips (Filter, Input) but applies generally. I9af21
  • Fix the broken RTL Slider behavior caused by LookaheadScope. Ieb152 b/408118041
  • Fix the Bottom AppBar crash related to scrolling with a hidden system UI. Ic6140 b/405996228

New Features

  • Reflow strategies are now available with ListDetailPaneScaffold and SupportingPaneScaffold, which reflows the associated pane under a single-pane layout setting.

API Changes

  • Add saveable state holder to PaneScaffoldScope Id9299
  • Introduce reflow strategy for adaptation I75c6a

Bug Fixes

  • Fix the bug that panes not animate in the first transition. Ib0415
  • Fix preferred heights not working. I1913b
  • Fix the bug that scaffold directive is not correctly updated. 0403ab

Behavior Changes

  • Lint checks shipped with Compose now require a minimum AGP version of 8.8.2. If you are unable to upgrade AGP, you can instead upgrade Lint on its own by using android.experimental.lint.version=8.8.2 (or a newer version) in your gradle.properties. To run Compose lint checks inside the IDE, Android Studio Ladybug or newer is required.

API Changes

  • currentCompositeKeyHash is now deprecated. Use currentCompositeKeyHashCode instead. The replacement API encodes the same hash with more bits, which exponentially reduces the chance of two random unrelated groups in the composition hierarchy from having the same hash key. I4cb6a b/177562901
  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed Idb6b5
  • @Stable, @Immutable, and @StableMarker have been moved to runtime-annotation (in a compatible way). You can now depend on runtime-annotation if you want to use these annotations from libraries that do not depend on compose. I23a16
  • Removes onCreating and onDisposing as they were deprecated and renamed to onPreCreate and onPreDispose. This change completes the rename. I97461
  • Expose a composition local that allows to attach a compose stack trace based on a compose node location in composition. Ie0bda b/354163858
  • Introduce diagnostic Compose stack traces based on source information stored in composition. I3db9f b/354163858
  • Deprecate runWithTimingDisabled in favor of runWithMeasurementDisabled, which more clearly describes the behavior - all metrics are paused. Additionally, expose the MicrobenchmarkScope superclass since redeclaring the runWithMeasurementDisabled function to open access isn't possible, since it's inline. I9e23b b/389149423 b/149979716
  • Adds @FrequentlyChangingValue: an annotation that can mark functions, and property getters, to indicate that they should not be called directly inside composition, as this may cause frequent recompositions. For example, to mark scroll position values and animating values. Warnings are provided by a corresponding lint check. I83630 b/234042500
  • Adds @RememberInComposition: an annotation that can mark constructors, functions, and property getters, to indicate that they must not be called directly inside composition, without being remembered. Errors will be raised by a corresponding lint check. This annotation can be used to mark declarations that return stateful / mutable objects, objects whose identity is important to maintain across compositions, or objects that are expensive to instantiate and should be cached across compositions. Ie7db0
  • Added a new rememberSaveable overload that supports KSerializer for type-safe state persistence using KotlinX Serialization. The existing Saver-based API remains supported. Iea4ab b/376028110

Bug Fixes

  • Fix dispatching of remember observers in pausable composition to avoid dispatching remembered/forgotten in the same apply I570b2 b/404645679 b/407931790
  • Renamed SnapshotObserver methods onCreating to onPreCreate and onDisposing to onPreDispose to match API guidelines. The previous methods are deprecated and the new methods default to call the old ones so existing implementations of this interface will continue to work until the methods are removed. These methods will be removed in 1.9.0 alpha in a follow-up CL that will shortly follow this one. They will be removed from 1.8 beta before 1.8 stable. I6d753
  • Fixed an issue where remembered values could incorrectly be forgotten and re-computed when recomposing an elided group that appears after a movable group I62cab b/383769314
  • Added support for compose stack traces in LaunchedEffect and rememberCoroutineScope I705c0 b/354163858
  • Compose lint checks now require a minimum AGP version of 8.8.2 from command line, and at least Android Studio Ladybug for IDE support. If you are using an older version of AGP, you can set android.experimental.lint.version=8.8.2 in gradle.properties to upgrade the Lint version, without affecting AGP. I6f2a8

External Contribution

  • Added AnnotationTarget.FUNCTION to the FunctionKeyMeta annotation. I08021

Important changes since 1.7.0

  • Compose 1.8 contains newly added support for semantic autofill. Ensure that the versions of UI and Foundation that you use are version 1.8 or higher, as autofill for text components needs the latest versions of both modules. For API usage and examples, please refer to the autofill documentation for more details, here.
  • Compose 1.8 supports additional types of haptic feedback: Confirm, ContextClick, GestureEnd, GestureThresholdActivate, Reject, SegmentFrequentTick, SegmentTick, ToggleOn, ToggleOff, VirtualKey. This is accessible via LocalHapticFeedback and on Android, this is available by default when the Vibrator API indicates that haptics are supported.
  • Multiple Focus APIs are now stable, including Modifier.focusRestorer() and onEnter and onExit FocusProperties I6e667. You can now specify a FocusDirection when you call requestFocus. We have added a requestFocus(FocusDirection) API to both focusRequester and FocusTargetModifierNode to allow focusing with a specific direction. (I5d9ec][https://android-review.googlesource.com/#/q/I5d9eca3a2cd283c1b84ad6b77d929ef9a49ce4cc], b/245755256)

Behavior Changes

  • Lint checks shipped with Compose now require a minimum AGP version of 8.8.2. If you are unable to upgrade AGP, you can instead upgrade Lint on its own by using android.experimental.lint.version=8.8.2 (or a newer version) in your gradle.properties. To run Compose lint checks inside the IDE, Android Studio Ladybug or newer is required.

API Changes

  • Removes Flag to enable trace statements for hit path tracker (debug). I1b2a1
  • Changed InnerRectRulers and OuterRectRules to be methods instead. Removed name parameter from RectRulers public API. DerivedRulers is now a constructor option for Vertical and Horizontal Rulers. MergedHorizontalRulers and MergedVerticalRulers have been replaced with minOf and maxOf methods to generate instances. Iee89f b/408192133
  • Deprecate androidx.compose.ui.LocalSavedStateRegistryOwner in favor of androidx.savedstate.compose.LocalSavedStateRegistryOwner. I5439f b/377946781
  • Add a Modifier.keepScreenOn to set the display to not sleep while present Ib5af4 b/408284174
  • Add a new semantics property Shape, which may be set when the shape of the UI element is different from its bounding rectangle, e.g., rounded corner rectangle. I1376f
  • Fix issue with pointer event dispatching in AndroidViews and added flag isPointerInteropFilterDispatchingFixEnabled to protect changes. I0e272 b/372055500 b/408002332
  • FocusRestorer no longer pins the previously focused item. Users should use a key to ensure that the previously focused item has the same composition hash, so that focus is successfully restored. I4203b b/330696779
  • Allow Compose to trigger ViewTreeObserver.OnScrollChanged. This behavior is introduced under the flag isOnScrollChangedCallbackEnabled. We also introduced an extension function of DelegatableNode dispatchOnScrollChanged. I34b9d b/238109286
  • currentCompositeKeyHash is now deprecated. Use currentCompositeKeyHashCode instead. The replacement API encodes the same hash with more bits, which exponentially reduces the chance of two random unrelated groups in the composition hierarchy from having the same hash key. I4cb6a b/177562901
  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed Idb6b5
  • Added lint check support for FocusRequester to make sure it is remembered inside composition I6bf91
  • Added the ability to set preferred frame rate or frame rate category on the Composable should be rendered at Ie5201
  • Expose native MotionEvent on Android. I17286
  • Add getChecked() + setChecked(int), deprecate isChecked + setChecked(boolean) Iaac9d
  • The graphicsLayer modifier now accepts a blendMode and a colorFilter Iab0e6
  • Added LocalResources composition local to query Resources. Calling LocalResources.current will recompose when the configuration changes, so calls to APIs such as stringResource() will return updated values. I50c13 b/274786917
  • Expose experimental API for Composables to handle indirect touch events Icff57
  • This release improves the reporting of unhandled exceptions thrown during the layout and draw phases of your composable content. Previously, an uncaught exception here would crash the test runner and prematurely end the test suite. These exceptions can now be reported more gracefully without ending the test suite. I9928b b/314128080
  • Deprecated the experimental GlobalAssertions API. Its intended use was to run accessibility checks, see enableAccessibilityChecks() for that purpose instead. I50aa5
  • SemanticsNodeInteraction.performTextInputSelection is no longer experimental and now supports an additional relativeToOriginal parameter which allows you to apply the selection to either the original untransformed text or the transformed text. I3a905 b/261561038 b/277018945
  • Introduce API for creating custom bullet lists through AnnotatedString I1d066 b/383269496 b/139326648
  • Deprecate runWithTimingDisabled in favor of runWithMeasurementDisabled, which more clearly describes the behavior - all metrics are paused. Additionally, expose the MicrobenchmarkScope superclass since redeclaring the runWithMeasurementDisabled function to open access isn't possible, since it's inline. I9e23b b/389149423 b/149979716
  • Updated ui-tooling Devices API to include newer devices. Ia2ac1
  • Add Tablet Portrait in the collection of Preview Screen sizes to help the developer to consider bigger windows Ia1976
  • Introduce trace value API for marking/logging trace with values at a given point in time. Trace values show in Prefetto as a new lane that can be seen through the timeline of a trace. On Android they're implemented using Trace.setCounter. Idcf48

Bug Fixes

  • Fix dispatching of remember observers in pausable composition to avoid dispatching remembered/forgotten in the same apply I570b2 b/404645679 b/407931790
  • android:dialogTheme can now be set to control dialog properties when decorFitsSystemWindows is false I7922f b/246909281
  • Fixed bug where any motion event caught outside of a dialog could dismiss the dialog. Ia78fd
  • Compose lint checks now require a minimum AGP version of 8.8.2 from command line, and at least Android Studio Ladybug for IDE support. If you are using an older version of AGP, you can set android.experimental.lint.version=8.8.2 in gradle.properties to upgrade the Lint version, without affecting AGP. I6f2a8
  • Added a new semantics property InputText that captures a textfield's value before output transformation is applied. Iae46a b/395911609 b/176949051
  • Moved enableAccessibilityChecks() API that turns on the Accessibility Checks for Android to separate packages which are compose:ui:ui-test-accessibility if you're not using the TestRule and compose:ui:ui-test-junit4-accessibility when calling on TestRule I3c318 b/391560768
  • Added support for compose stack traces in LaunchedEffect and rememberCoroutineScope I705c0 b/354163858

External Contribution

  • Changing the experimental runComposeUiTest function to accept a suspend block. Also added a deprecated fun runComposeUiTest for binary compatibility I3b88c b/361577328
  • There are no major commits just moving to stable version

Bug Fixes

  • To mitigate CorruptionException issues in PreferencesDataStore, the default Storage has been changed from OkioStorageto FileStorage. This change was implemented by introducing a PreferencesFileSerializer. b/346197747

The following artifacts were released:

  • androidx.test.espresso:espresso-accessibility:3.7.0-alpha03
  • androidx.test.espresso:espresso-core:3.7.0-alpha03
  • androidx.test.espresso:espresso-contrib:3.7.0-alpha03
  • androidx.test.espresso:espresso-idling-resource:3.7.0-alpha03
  • androidx.test.espresso:espresso-intents:3.7.0-alpha03
  • androidx.test.espresso:espresso-remote:3.7.0-alpha03
  • androidx.test.espresso:espresso-web:3.7.0-alpha03
  • androidx.test.espresso.idling:idling-concurrent:3.7.0-alpha03
  • androidx.test.espresso.idling:idling-net:3.7.0-alpha03

Bug Fixes

  • Downgrade to kotlin 1.9
  • Only hold main Looper's TestLooperManager during interrogation

Bug Fixes

  • Fix bug where passing null to setAttribute for TAG_XMP would throw an exception.

Lint API Compatibility Warning

  • JetBrains changed KaCallableMemberCall from a class to an interface, which breaks binary compatibility. This can cause crashes if your project’s AGP version differs from the version used to compile lint checks. This update was made in aosp/3577172 but was missing from the release notes — we’re clarifying it here. Recommended fix: Update to the latest stable AGP. If you can’t fully update, use android.experimental.lint.version to align lint checks with your AGP version — see Compose Runtime behavior changes for details.

New Features

  • Add a check for accidental Provider<String>.toString calls as they are likely bugs.
  • Add check to catch uses of methods, properties, fields coming from internal types.

Bug Fixes

  • Fix GradleProjectIsolation check to allow usage of Project.isolated.
  • Fix WithTypeWithoutConfigureEach check to catch uses of Project.tasks.withType<Task>() without configureEach.
  • Fix InternalGradleApiUsage check to catch fully qualified usages of internal APIs.

Bug Fixes

  • Fix NullPointerException that occurs as a result of returning a null route controller in specific scenarios Ib7efe.

Bug Fixes

  • Removed all non-android platform targets from Jetpack Navigation as those targets do not actually work. Stubs for different platforms are now provided instead.I2877d

Bug Fixes

  • Fix IndexOutOfBoundsException bug during provided type converter validation. b/409804755.
  • Support RoomDatabase.runInTransaction() when a SQLiteDriver is configured with Room. b/408364828.

Bug Fixes

  • Downgrade to kotlin 1.9

New Features

  • StackTrimmer now reports suppressed exceptions

Important changes since 1.2.0

  • Converted androidx.tracing.Trace class to Kotlin, and moved all code from the tracing-ktxmodule to tracing.
  • Remove crossinline from trace to allow using in a @Composable. I53882 b/248344805

API Changes

  • All the Material SwipeToReveal dependencies on Foundation SwipeToReveal were moved to Material package, e.g. RevealValue, RevealDirection, RevealActionType, RevealState, rememberRevealState. Developers should change their imports of these classes and functions from androidx.wear.compose.foundation to androidx.wear.compose.material. Ib7cb8
  • Updated the API of HierarchicalFocusCoordinator to be modifiers instead of composables.
  • Migration notes:
    • HierarchicalFocusCoordinator(function, content) can be replaced by adding a Modifier.hierarchicalFocus(function()) to content, or the enclosing composable.
    • ActiveFocusListener { if (it) focusRequester.requestFocus() } can be replaced by adding Modifier.hierarchicalFocusRequester(focusRequester)
    • Other rarer uses of ActiveFocusListener can use the new parameter on Modifier.hierarchicalFocus
    • focusRequester(rememberActiveFocusRequester()) can be replaced by hierarchicalFocusRequester()
    • val focusRequester = rememberActiveFocusRequester() can be replaced by remember { FocusRequester() } and adding Modifier.hierarchicalFocusRequester(focusRequester). Ie319a

Bug Fixes

  • The velocity threshold that swipe gestures need to exceed to trigger a change of state has been increased for the following components: SwipeToReveal, BasicSwipeToDismissBox and SwipeDismissableNavHost (only for API 35 and below for SwipeDismissableNavHost). If47bf
  • Fixed an animation issue when new items are added into TransformingLazyColumn. I589b2

API Changes

  • Removed scrollTransform from the public API surface. Use the combination of transformedHeight and graphicsLayer modifiers if you need to get the same functionality. Ie181d
  • Replaced ImageButton and ImageCard composables with Button and Card/TitleCard overloads respectively. Renamed imageButtonColors to buttonWithContainerPainterColors and imageCardColors to cardWithContainerPainterColors. Added public ButtonDefaults.scrimBrush and CardDefaults.scrimBrush. Renamed button imageBackgroundGradientStartColor and imageBackgroundGradientEndColor to scrimGradientStartColor and scrimGradientEndColor. Renamed CardDefaults.ImageContentPadding to CardDefaults.CardWithContainerPainterContentPadding I7b8b6
  • Picker and PickerGroup now take the contentDescription as a lambda to avoid unnecessary recompositions. I002dd

Bug Fixes

  • Fixed an issue where indeterminate CircularProgressIndicator would wobble during animation if width is not equal to height. I76bfe
  • Fixed an issue with edge button layout on invalid size. Now prevents updating the layout of the edge button when the height is NaN. I32b93
  • Increased the max sweep angle in OpenOnPhoneDialog so that the default ‘Check your phone’ text is not clipped with the largest font size. I90af9

New Features

  • It’s been possible to define a watch face’s UserStyle schema for a while, and it’s possible to define ColorUserStyleSetting in XML.

API Changes

  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed. Idb6b5
  • Added the Watch Face Push API which allows a Wear OS app to install a watch face on a watch programmatically.

Bug Fixes

  • Complication providers using 1.3.0-alpha06 are encouraged to upgrade because a crash bug with ComplicationDataSourceUpdateRequester on the next version of WearOS has been fixed.

Bug Fixes

  • Reduce the possibility of TooManyRequestsException being thrown from WorkManager’s registration of a NetworkCallback used for constraint tracking. b/231499040 b309d5.