API Changes
- Replaced the list of functions of
A2uiBasicCatalogV1with theA2uiBasicCatalogV1.Functionsinterface, which has a method for each basic catalog function except the logical functionsand,or, andnot, which the catalog implements. Implementations only need to implementopenUrland can override other methods to customize individual functions.A2uiBasicCatalogV1.Functions(context)creates default implementations of all methods.materialA2uiBasicCatalogV1now takesfunctionsinstead ofurlOpener,messageFormatter, andlocaleProvider. I647b2 b/568735972 - Removed
constfromCatalogIdin the companion object ofA2uiBasicCatalogV1, so that the string value is not part of the public API. I308d6 b/547851648
Bug Fixes
A2uiPropertylist factories now throwIllegalArgumentExceptionifminItemsormaxItemsis negative, or ifminItemsis greater thanmaxItems. Ia8a37
API Changes
AppFunctionNamehas been moved from theandroidx.appfunctions.metadatapackage toandroidx.appfunctions. Iec624- Removed the default value of
isDescribedByKDocfromAppFunctionDeclaration,AppFunctionSerializableandAppFunctionSignature; it must now be set explicitly. Idcfd2 - Support
AppFunctionServiceEntryPointinAppFunctionTestRuleI12e01 - AppFunctionResourceContainer and AppFunctionTextResource are now marked as @ExperimentalAppFunctionsApi. If9469
- Renamed
AppFunctionAppMetadata.descriptiontoinstructions, and thedescriptionXML attribute ofAppFunctionAppMetadatatoinstructions, to align with MCP naming conventions. I04d08 - Replaced regex pattern in @AppFunctionStringValueConstraint with patternMatchers backed by android.os.PatternMatcher. I7c7cc
Bug Fixes
Major features of 1.0.0:
- ARCore for Jetpack XR is now stable! The ARCore for Jetpack XR library provides capabilities for blending digital content with the real world. This library includes motion tracking, persistent anchors, hit testing, plane identification with semantic labeling (for example, floor, walls, and tabletops), and Geospatial poses using Google's Visual Positioning System.
- For more information, see our Developer Guide and API Reference.
API Changes
- Introduced the
SpatialAnnotationAPI for tracking 3D physical geometries and objects. AddedSpatialAnnotationTrackingOptionsand its corresponding builder pattern to configure spatial tracking via camera image buffers. I918ce - Introduced
SpatialAnnotationandSpatialAnnotationTrackingModeto Jetpack XR ARCore, enabling developers to configure and track arbitrary bounded 3D quadrilateral geometries (Quad) targeted at physical real-world spatial environments. I880e4 - Added
TestSpatialAnnotationto allow programmatic simulation of spatial annotations in automated tests. If2335 - Added
geospatialPose,horizontalAccuracy,verticalAccuracy, andorientationYawAccuracyas new APIs to give more information in the Geospatial state. If28f8
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521- Checked for max image count of 0 when configuring
AugmentedImage, throwingUnsupportedOperationExceptioninstead of failing unexpectedly. I6ce439 - Fix memory leaks and concurrency issues in
AugmentedImageRendererby properly tracking and cancelling rendering jobs, disposing of entities, and safely modifying the images collection. Ie70760
New Features
- Simplified test setup in Android Gradle Plugin backup test suites by automatically targeting the tested app when
@BackupRestoreConfigis omitted. I1452b - Added support for inheriting
@BackupRestoreConfigand@Isolationsettings from an outer test class in@Nestedtest classes. Ia45a8 - Added support for injecting
BackupRestoreControllerdirectly into test class constructors and@BeforeAllsetup methods. I6e822 Ia2ebd - Added support for pinning a specific device to a
@Devicerole in multi-device tests using theandroidx.test.backup.device.serial.{role}property. I484be
Bug Fixes
- Fixed
performBackupandperformRestoreso tests fail immediately instead of passing silently when a backup is skipped or empty, when the backup service errors out, or when a local backup archive belongs to a different app or device. I7673d I478ad I0b989 I9a0ea I79567 - Fixed tests hanging indefinitely on unresponsive devices by enforcing timeouts across backup, restore, device actions, and cleanup steps. I10661 I9cdee If5f92
- Fixed
performBackupdeleting generated backup files when the test run finished, so backup archives are now kept on disk after tests exit. I8c13f - Fixed database test helpers (
StorageDomain.Database) to properly store and checknullvalues, overwrite existing rows when seeding test data, catch invalid table configurations early, and fail when an expected database file is missing. Ib4767 Iddf87 I19c43 Ie8d78 I8bc18 - Fixed
SharedPreferencestest helpers to preserve data types accurately and support checking fornullor removed preferences. I8456d9 I1d0fc2 - Fixed
runOnDeviceto handle large test payloads without crashing, pause for the debugger whenwaitForDebuggeris enabled, find the test runner in custom test APK package names, and block internal runner flags from leaking into device actions. Ic73bd Iede17 I1d172 I84c15 - Improved test stability and speed by sharing a single ADB connection across the test run, installing APKs only once per device, and failing clearly when an APK fails to install or launch. I62717 Iabf75 I14e6f I4c3da5 I54077 Iee84e
- Fixed
fetchDeviceLogswriting empty log files, and stopped cancelled test runs from generating false failure reports. I736c4 I7b199 Ia847e - Cleaned up
backup-hostdependencies soadblibis available directly to callers and internal logging or test libraries no longer clash with your project's classpath. I6e822 Iba9a4 Ib4ec9
Bug Fixes
compileSdkfor Compose libraries updated to 37.1. This will require transitively updatingcompileSdkfor all apps and libraries using Compose. I05b0f
API Changes
- Converted
UseCaseCamera2Interop,ImageCaptureCamera2Interop,SessionConfigCamera2Interop, andCameraControlCamera2Interopfrom interfaces into abstract classes. If654e - Fixed the Camera2Interop V2 ambiguity issue I1bbe5
Bug Fixes
- Fixed a native
SIGSEGVcrash on theCameraXOpenGLthread when aSurfaceProcessorreleased an inputSurfaceTexturewhoseSurfaceRequestwas garbage-collected before completion. I76f73 b/563673593 - Fixed a Surface leak and native
OpenGLcrash that could occur during garbage collection when aCameraEffect's executor orHandlerThreadwas shut down before the effect'sSurfaceOutputwas closed. Ifcc19 b/558819242 - Low Light Boost behavior improvement: Low Light Boost and Torch now follow a 'last setting wins' policy where enabling one automatically disables the other instead of rejecting the request. In addition, flash can now fire during image capture while Low Light Boost is active. Ie583f
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521- Support obtaining
CameraSelectoron physical cameras fromCameraInfo.getPhysicalCameraInfos()and bindingUseCasesto physical cameras. QueryingCameraInfowith a physicalCameraSelectornow returns the physicalCameraInfoinstead of the logicalCameraInfo. Ibe7f2 - Clarified
OutputOptions.Builder.setLocationJavadoc that only latitude and longitude are stored in video metadata. I77d3b b/551348846 - Fixed a bug in
ImageAnalysiswhere changing output rotation dynamically or unbinding the use case could cause a Surface/ImageReaderresource leak. I25cef CameraInfo.getIntrinsicZoomRatio()now rounds the returned ratio to two decimal places. Ibe9a8- Relaxed
HardwareBuffer.isSupportedcheck forPRIVATEformat inImageAnalysisto prevent false negative failures on some devices. I347a4 b/545866947 - Fixed a compilation crash on newer JDK versions when resolving transitively imported JSpecify type annotations on
CameraXinternal fields. I00bb4 b/543937345
Bug Fixes
Modifier.bordernow uses a new more performant implementation. You can disable this usingComposeFoundationFlags.isNewBorderImplementationEnabled. If you run into issues and need to disable this flag, please file a bug. I4c3b3Modifier.bordernow supports rendering generic / polygon shapes with a runtime shader, when using the new border implementation. I128ca- Fixes an edge case bug with rendering certain rounded rectangle outlines in
Modifier.border.ComposeFoundationFlags.isRoundedRectangleBorderRenderingFixEnabledcan be used to disable this change if it causes issues. I19141 - Fixed an issue where the cache window incorrectly re-prefetched items when a previously prefetched item became visible. I43ca7b4
Bug Fixes
- Fixed a memory leak in
ComputedStatethat could the recorded values of states from being released. Also fixed an issue that could preventComputedStatefrom invalidating correctly when its calculation block calledSnapshot.withoutReadObservation. I880eb
- Restructured repackaged protobuf library to allow for better shrinking when using R8
API Changes
- Removing obsolete
@RequiresApi(21)annotations Ic4792
Bug Fixes
- Moving the default minSdk from API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
- Fixed
isSupportedMimeTypeto match existing parsing support for HEIC and AVIF (supported on API 28+ and 31+ respectively).
API Changes
- Added
GlanceWearProfiles.wearWidgetsRemoteComposeprofile for Glance Wear widgets and their supported operations. I84225
Bug Fixes
- Add anti-aliasing to cut edges of strokes edited with the partial stroke eraser (
Stroke.subtract, optionally followed byStroke.split)
API Changes
- Libraries now target Kotlin 2.2 and require kotlinc 2.2 I82396 b/498369605
- Renamed the
halfLifeMsparameter ofFollowMode.soft()tohalfLifeMillis. I39187 - Converted
PitchLimitsinto an@JvmInline value classpacking two floats into aLongto eliminate object allocations. Id43c3 - Added new parameter for
FollowMode.soft:halfLifeMs,startDelay, andstartThresholdsparameters. Removed parameterdurationMsas it no longer needed as we transition from asmoothStepalgorithm to anexponentialDecayalgorithm. If0140 - Remove the deprecated
SpatialActivityPaneloverload. Use the overload ofSpatialActivityPanelthat accepts aSpatialActivityPanelControllerinstead. I5abc3 - Enable transitions between 3D and 2D Composable content within one Activity in
FullSpaceMode. This change is gated bySpatialComposeFlags.isMainPanelResetOnSubspaceDisposeEnabled. I4e237 - Exposed experimental
Subspaceoverload taking aFollowTargetparameter to support following content. Iec1a9 - Remove deprecated movable modifiers. Use the new movable modifier instead that accepts the new
MovePolicyas a parameter. Ib135d - Remove deprecated
DragPolicy. UseSubspaceModifier.movable()instead. I108d4 - Deprecated stateless
SliderandRangeSlideroverloads in favor of their stateful versions. RenamedactiveRangeStartandactiveRangeEndinRangeSliderStatetostartValueandendValue, deprecating older unpromoted and experimental Slider APIs withDeprecationLevel.HIDDEN. If8995
Bug Fixes
- Fixed
RotateToLookAtUserby introducingposeInActivitySpaceto ensure correct pose calculation for all subspace types, including those attached to anchors or users.Ica367b - Fix Constraints crash when Orbiter is attached to large panels I8c4bf
- Fixed a bug in
SubspaceLayoutNodewhereremoveAll()caused unnecessaryArrayListallocations. Also fixed depth calculation performance. I34a10a androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521- Improve kdocs related to
AudioOutputProviderto highlight that it should not be re-used with multipleExoPlayerinstances I6b18e - Fix minor kdoc spelling and grammar issues Id3ba6
Known Issues
- This version of
androidx.xr.composehas a dependency onandroidx.xr.scenecore:1.0.0-rc01, which has a known memory leak. In your build configuration, you may explicitly override theSceneCoredependency to version1.0.0, which includes a fix for the memory leak.
API Changes
AlertDialog's text parameter is now optional and has moved to after title. I0e0d4- Introduce
focusedBackgroundColorandfocusedCheckedBackgroundColorforToggleButtonIab0ba - Renamed
AlertDialog'sshape,contentColor, andcontentPaddingparameters (and the matchingAlertDialogDefaultsmembers) tocontainerShape,containerContentColor, andcontainerContentPadding, to clarify that they only apply to the dialog container, not the buttons. I24f24 - Introduce
focusedBackgroundColorandfocusedCheckedBackgroundColorforIconToggleButtonId5d8d - Fixes an edge case bug with rendering certain rounded rectangle outlines in
Modifier.border.ComposeFoundationFlags.isRoundedRectangleBorderRenderingFixEnabledcan be used to disable this change if it causes issues. I19141
Bug Fixes
Modifier.bordernow supports rendering generic / polygon shapes with a runtime shader, when using the new border implementation. I128ca
Major features of 1.0.0:
- Jetpack XR SceneCore is now stable! SceneCore lets you place and arrange 3D content, defined by entities, relative to each other and your environment. With SceneCore, you can create, place, and manipulate 2D panels and 3D models in virtual and mixed-reality scenes; specify spatial environments and spatial audio sources; and anchor virtual content to the real world.
- For more information, see our Overview Page and API Reference.
API Changes
- Added dynamic mesh update APIs (
MeshBuffer.createDynamic,MeshBuffer.updateVertexData,MeshBuffer.updateIndexData, and a dynamicCustomMesh.BuilderFromMeshDataconstructor) to support updating vertex and index data at runtime. Ia1ecb - Added
VertexLayout.getBufferIndexhelper methods to easily retrieve the buffer index for a givenVertexAttributeorVertexBufferLayout. I1a9e3 - Made
CustomMesh.boundsa var so the bounding box can be updated dynamically at runtime. Ib0397 - Promoted
glTFanimation APIs (GltfAnimation,GltfModelEntity.getAnimations, andGltfModelEntity.stopAllAnimations) to public/stable while keepingGltfAnimation.loop setter as experimental, andGltfAnimationStartOptionsand start(options) as experimental and deprecated. Iacdae - Added
stopAllAnimations()toGltfModelEntity, madeGltfAnimation.start()parameterless, addedloopandspeedproperties toGltfAnimation, and deprecatedGltfAnimationStartOptions,start(options), andseekTo(Duration). I53105 - Updated
GltfModelEntityAPIs to documentIllegalStateException(specificallyEntity.DisposedException) when called on disposed entities. I65a76f
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521- Improve kdocs related to
AudioOutputProviderto highlight that it should not be re-used with multipleExoPlayerinstances I6b18e - Removed unnecessary dependencies on
impressfrom various XR modules. I84636c
API Changes
SavedStateHandlenow provides functions to integrate withSavedStateContainer. There isasContainer()to transform theSavedStateHandleas aSavedStateContainer,getOrCreateContainer()to make a child container inside of the handle, andgetOrCreateSavedStateHandle()which creates a childSavedStateHandleinside of the current one. As part of the move toSavedStateContainer, it is also no longer valid to usegetStateFlowandgetLiveDatatogether on aSavedStateHandleand doing so will throw anIllegalArgumentExceptionI62f36
New features
- Added an animated shimmer effect for the component loading states.
API Changes
- Replaced the list of functions of
A2uiBasicCatalogV1with theA2uiBasicCatalogV1.Functionsinterface, which has a method for each basic catalog function except the logical functionsand,or, andnot, which the catalog implements. Implementations only need to implementopenUrland can override other methods to customize individual functions.A2uiBasicCatalogV1.Functions(context)creates default implementations of all methods.materialA2uiBasicCatalogV1now takesfunctionsinstead ofurlOpener,messageFormatter, andlocaleProvider. I647b2 b/568735972
- Common Library:
- Add
C.COLOR_SPACE_DISPLAY_P3and support Display P3 color space inMediaFormatUtilandColorInfoISO color mappings. - Add a central
Flagsregistry to manage experimental feature flags and staged rollout (Flags.setCanaryModeEnabled). Migrated many existing@ExperimentalApimethods to use the new flags API. - Add
MediaMetadata.playlistId,MediaMetadata.Builder.setPlaylistId(String),MediaMetadata.categories, andMediaMetadata.Builder.setCategories(List<String>). - Replace
androidx.media3.common.util.NonNullApiwith JSpecifyorg.jspecify.annotations.NullMarked.
- Add
- ExoPlayer:
- Fix an issue where DASH multi-period playback gets stuck when the next period's first chunk fails to load #3396.
- Report
wasCanceled = trueinAnalyticsListener.onLoadErrorandMediaSourceEventListener.onLoadErrorwhen load retries are exhausted. - Support registering multiple
VideoFrameMetadataListenerinstances usingExoPlayer.addVideoFrameMetadataListenerandExoPlayer.removeVideoFrameMetadataListener, deprecatingExoPlayer.setVideoFrameMetadataListenerandExoPlayer.clearVideoFrameMetadataListener. - Add support for ads in multi-period content (e.g., DASH) by splitting and offsetting the
AdPlaybackStatefor each period. - Fix race condition in
PreCacheHelperwhere canceling an ongoing preparation request could still start background downloads. - Limit
setLoadOnlySelectedTracks(true)onProgressiveMediaSourceandDefaultMediaSourceFactoryto only filter out unselected video and image tracks. Audio and text tracks are always loaded to allow seamless track switching without re-buffering. - Enable
setLoadOnlySelectedTracks(true)by default onProgressiveMediaSourceandDefaultMediaSourceFactory. This saves memory and allowsDefaultLoadControlbuffer allocation calculations to work more accurately when not all tracks are selected. Note that this may cause additional buffering if unselected video or image tracks are newly enabled mid-playback. - Fix an issue where
Player.getCurrentPosition()could return stale values (updating only a few times per second) when dynamic scheduling is enabled #3286. - Fix an issue where an unexpected decrease or reset in the
AudioTrackplayback head position could be incorrectly treated as an integer overflow, causing playback to stall in buffering #3407. - Remove experimental
DefaultMediaCodecAdapterFactory.setAsyncCryptoSynchronizationEnabled(boolean). - Avoid unnecessary renderer re-enables and glitches when returning from interstitials or ads into content clipped at the end #3371.
- Fix an issue where a renderer error on an upcoming playlist item could prematurely interrupt current playback when
Flags.FLAG_PER_STREAM_MEDIA_PROGRESSIONis enabled. - Fix a
NullPointerExceptionthat could occur ifExoPlayertransitioned renderers to an unprepared media period whenFlags.FLAG_PER_STREAM_MEDIA_PROGRESSIONis enabled. - Fix an issue where video frames could be unexpectedly skipped or dropped during dynamic scheduling when
Flags.FLAG_VIDEO_RENDERER_DURATION_TO_PROGRESSis enabled. - Fix an
ArrayIndexOutOfBoundsExceptionin analytics listeners when stopping playback during an ad on a livestream #3423. - Fix an issue where
PreloadMediaSourcecould unexpectedly post preload event whenpreload()is never called #3408. - Fix an issue where
Format.subsampleOffsetUswas ignored for metadata tracks, causing incorrect playback timestamps in decoded SCTE-35 splice commands #3413. - Fix a memory leak in
PreloadMediaSourceandDefaultPreloadManagerwhenpreload()is called multiple times on the same source #3445. - Fix a
NullPointerExceptionwhen releasingAdsMediaSourcewhile a content timeline refresh is pending #3442. - Fix an issue where playback of progressive media could jump to the wrong position when a load after a seek (or when starting playback at a non-zero position) failed and was retried #3440.
- Add workaround for the Xiaomi TV Stick 4K (MiTV-AYFR0) H.264 decoder freezing on seamless resolution changes #3457.
- Fix a
NullPointerExceptioninSteeringManifestTrackerwhen the tracker is stopped before a posted load completion or error callback is executed #3443. - Support HAGC (ST 2094-50) timed metadata playback from
mebxboxed metadata tracks in MP4 files. - Fix an issue where slow-preparing media periods in a playlist could be skipped.
- CompositionPlayer:
- Support configuring the frame rate of video frame aggregation using
Composition.Builder.setVideoFrameAggregationParametersfor playback workflows. - Fix frame drops in multi-sequence compositions caused by timestamp quantization or rounding mismatches, by selecting the frame with the closest timestamp during frame aggregation. This is enabled from API 29 only, as it requires holding one additional frame in flight per video sequence.
- Support configuring the frame rate of video frame aggregation using
- Transformer:
- Support configuring the frame rate of video frame aggregation using
Composition.Builder.setVideoFrameAggregationParametersfor export workflows. - Fix frame drops in multi-sequence compositions caused by timestamp quantization or rounding mismatches, by selecting the frame with the closest timestamp during frame aggregation. This is enabled from API 29 only, as it requires holding one additional frame in flight per video sequence.
- Respect
Transformer#setAudioMimeType(AUDIO_RAW)whenAudioProcessorsare used. Prior to this fix, requestingMimeTypes.AUDIO_RAWand applying anAudioProcessorresulted in compressed output.
- Support configuring the frame rate of video frame aggregation using
- Track Selection:
- Fix an issue where an SDR track was incorrectly preferred over a supported Dolby Vision track on some devices #3135.
- Extractors:
- Mp4Extractor: Fix
dOpsbox parsing for Opus in MP4 wherePreSkip,InputSampleRate, andOutputGainwere not converted from big-endian to little-endian, causing the first ~299 ms of audio to be dropped when no edit list is present #3431. - Remove
Mp4Extractor.FLAG_READ_WITHIN_GOP_SAMPLE_DEPENDENCIES,Mp4Extractor.FLAG_READ_WITHIN_GOP_SAMPLE_DEPENDENCIES_H265,FragmentedMp4Extractor.FLAG_READ_WITHIN_GOP_SAMPLE_DEPENDENCIES, andFragmentedMp4Extractor.FLAG_READ_WITHIN_GOP_SAMPLE_DEPENDENCIES_H265as within-GOP sample dependency parsing for H.264 and H.265 is enabled by default. - Mp4Extractor: Fix location metadata parsing from
xyzboxes containing altitude coordinates to populateMp4LocationData. - Add
ExtractorUtil.getFramesPerEncodedSampleto calculate the number of audio frames per sample for encoded audio formats #3367. - Add
FLAG_READ_XMP_METADATAtoMp4Extractorto extract XMP metadata from top-level UUID boxes. - Fix corrupted AC-3, DTS and LPCM audio when playing DVD-style MPEG-PS content, by stripping the
private_stream_1sub-stream header from each PES packet inPsExtractorbefore the payload is passed to the audio reader #3327. - Fix failure in
FragmentedMp4Extractorwhen a version 1tfdtbox encodes a negativebaseMediaDecodeTime#3412. - MPEG-TS: Support parsing H.264 and H.265 frame packing arrangement SEI messages to populate
Format.stereoMode#3419. - Parse Dolby Vision Profile 20 configuration data and reject unsupported Dolby Vision profiles instead of playing back as standard HEVC with incorrect colors #3427.
- MP3: Revert LAME/Xing encoder delay & padding metadata adjustment because it's incompatible with many
MediaCodecMP3 decoders #3425. - Matroska: Fix
NullPointerExceptionwhen parsing nestedChapterAtomelements #3438. - Ogg: Fix bug where a packet whose size is a multiple of 255 bytes and ends at a page boundary is merged with the following packet.
- MP4: Parse
mebxboxed timed metadata tracks inMp4ExtractorandFragmentedMp4Extractor. Tracks carrying anit35key are exposed asMimeTypes.APPLICATION_ITUT_T35(enabling HAGC playback). Othermebxtracks are ignored unlessFLAG_EMIT_RAW_MEBX_DATAis set, in which case allmebxtracks are emitted as rawMimeTypes.APPLICATION_MEBX. - Ogg: Support extracting Opus end-padding for gapless playback #2576, and fix sample timestamps after seeking to a page that starts with a continued packet.
- Ogg: Fix decode errors and ~1s timestamp jumps in chained Ogg Opus streams by ignoring mid-stream Opus ID and comment header packets.
- Mp4Extractor: Fix
- Inspector:
- Support retrieving XMP metadata from MP4 files using
MetadataRetriever. - Support extracting
mebxboxed timed metadata tracks inMediaExtractorCompatasMimeTypes.APPLICATION_MEBX.
- Support retrieving XMP metadata from MP4 files using
- Inspector Frame:
- Fix clipping of wide-gamut BT.2020 colors in the SDR base image when extracting Ultra HDR frames with
FrameExtractor. Out-of-gamut colors are now softly compressed into the sRGB gamut instead of being clamped.
- Fix clipping of wide-gamut BT.2020 colors in the SDR base image when extracting Ultra HDR frames with
- Audio:
- Add workaround for devices that invoke
android.media.AudioDeviceCallbackon the wrong thread #3386. - Fix potential stuck playbacks after track transitions with compressed offload.
- Work around an issue on Amazon Fire TV sticks where AC-3 audio could freeze during period transitions #3448.
- Support trimming end-of-stream encoder padding for Ogg and WebM/Matroska Opus gapless playback #2576.
- Fix dynamic offload gapless delay and padding updates during track transitions so they apply to the incoming track rather than the playing track.
- Trim encoder end-padding on single streams and the final stream in a playlist in addition to mid-playlist gapless transitions #2576.
- Avoid unnecessary audio buffer copies in
TrimmingAudioProcessorafter start-of-stream encoder delay trimming has completed and no end-of-stream padding needs to be trimmed.
- Add workaround for devices that invoke
- Video:
- Fix reporting of late video frames with identical release timestamps so that they are reported as dropped instead of skipped.
- Text:
- Add
MediaItem.SubtitleConfiguration.timeOffsetUsto shift the timestamps of sideloaded subtitles relative to the media. The offset can be changed during playback withPlayer.replaceMediaItem(int, MediaItem)without interrupting playback #1976. - SubRip: Add support for injecting a
CharsetDetectorintoDefaultSubtitleParserFactoryto detect the character encoding of standalone SubRip subtitles without a byte order mark #2247.
- Add
- Effect:
- Implement
SoundSeparationAudioProcessorfor audio source separation using StudioSound GMSCore module.
- Implement
- Muxers:
- Fix
dOpsbox writing for Opus inMp4MuxerandFragmentedMp4MuxerwherePreSkip,InputSampleRate, andOutputGainwere written in little-endian instead of big-endian #3431. - Support writing GPS altitude in
Mp4LocationDatausingMp4Muxer. - Add
Muxer.Factory.create(ParcelFileDescriptor)to allow muxing directly to aParcelFileDescriptor. - Write
tfdt(Track Fragment Base Media Decode Time) box by default intrafboxes of fragmented MP4 files to provide media decode timestamps. - Support writing E-AC-3 and E-AC-3 JOC (Dolby Atmos)
dec3container boxes inMp4Muxer. - Add WebM format support to
MediaMuxerCompat. - Write
mfra(Movie Fragment Random Access) box at the end of fragmented MP4 files to allow seeking inFragmentedMp4ExtractorusingFLAG_READ_MFRA_FOR_SEEK_MAP. - Fix crash in
Mp4WriterandFragmentedMp4Writerwhen writing an EOS sample before any other samples are written. - Fix container compliance when muxing Dolby content into MP4 or Fragmented MP4 files by advertising the
dby1compatible brand in the container header #3369. - Support 32-bit float PCM audio tracks in
Mp4MuxerandFragmentedMp4Muxer#3389. - Reject unsupported Dolby Vision profiles in
Mp4MuxerandFragmentedMp4Muxerwhen adding tracks. - Support 24-bit and 32-bit integer PCM audio tracks in
Mp4MuxerandFragmentedMp4Muxer.
- Fix
- IMA extension:
- Forward player pause and resume events to the IMA SDK in
ImaServerSideAdInsertionMediaSource.
- Forward player pause and resume events to the IMA SDK in
- Session:
- Add
MediaConstants.EXTRAS_KEY_PLAYLIST_ID,MediaConstants.EXTRAS_KEY_PLAYLIST_TITLE,MediaConstants.EXTRAS_KEY_PLAYLIST_ARTWORK_URI, andMediaConstants.EXTRAS_KEY_CATEGORIESto populate playlist and item metadata from legacy metadata and descriptions, andMediaConstants.EXTRAS_KEY_SUGGESTED_TYPEandMediaConstants.EXTRAS_KEY_TTL_SECONDSfor suggestionLibraryParams.extras. - Fix
SecurityExceptioncrash when creating or releasing aMediaSessionon devices that enforce strictPendingIntentlimits. - Fix issue where
MediaSession.getControllerForCurrentRequest()returnednullduring play requests on Android 12 (API 31 and 32) whenMediaSessionServicewas not yet in the foreground. - Fix
IllegalArgumentExceptioncrash when aMediaControllerconnects to a legacy session that reports a negative maximum volume. - Fix an issue where calling
MediaController.setMediaItemorsetMediaItemsfollowed byplay()on a paused legacyMediaSessionCompatcould dispatch an unsupportedonPrepareFrom*callback instead ofonPlayFrom*, or dispatchonPlay()without re-initializing the requested media item. - Fix
NullPointerExceptionin legacyMediaBrowserwhen receiving a custom command response #3432. - Fix
IllegalArgumentExceptioncrash when receiving legacy metadata with duplicate keys in its underlyingBundle. - Coalesce outgoing
MediaControllerCompat.TransportControlscalls made within the sameLooperiteration when controlling a legacyMediaSessionCompat(for example, callingsetMediaItem,prepare, andplaytogether now dispatches a singleonPlayFrom*callback).
- Add
- UI:
- Fix RTL subtitle punctuation positioning and span range preservation when bidirectional text wrapping is enabled #3454 #3455.
- Add
TrackSelectionStateandTrackSelectionParametersStateclasses and their corresponding Composable state remember functions to themedia3-ui-composemodule. - Introduce
PresentationState.videoAspectRatioand makeModifier.resizeWithContentScaletakeaspectRatio: Float?instead ofsourceSizeDp: Size?. - Add
CuesStateclass andrememberCuesStateComposable to themedia3-ui-composemodule for listening to player's current cues. - Add scrubbing mode support to
ProgressSliderif it is based onExoPlayerorCompositionPlayer. - Add
showArtworksupport toPresentationStateand use it to time rendering of the provided optionalartworkComposable inContentFrameandPlayer. AddArtworkComposable to be used as the default value for theartworkslot. - Add new fields to
PlayPauseButtonState(showBuffering,showRetry,showReplay) and use them inPlayPauseButtonto render more icons and a buffering indicator. - Add
PlaybackStateclass to allow custom playback state observation, and introduceBufferingIndicatoras a button-independent component. - Fix an issue where
PlayerViewandPlayerControlViewshowed ad markers at period boundaries for live postroll placeholders in multi-period livestreams. - Composable slots of
Player,ContentFrame,PlayerDefaultsandMiniControllerno longer receive the player or the controls visibility as parameters. Capture them from the calling scope instead (for example,topControlsis now@Composable BoxScope.() -> Unit). This is a breaking change on an unstable API. - Add
alignmentparameter toContentFrame,PlayerandModifier.resizeWithContentScaleto position the scaled content within its container, and clip the content ofContentFrameto its bounds, so that video scaled withContentScale.Cropno longer draws outside it. - Add livestream UI support to
ProgressSlider,ProgressStateWithTickCountandProgressStateWithTickIntervalby exposingisLiveandliveOffsetMs. AddLiveButtonComposable tomedia3-ui-compose-material3#2213.
- Ktor extension:
- Fix an issue where
KtorDataSourcecould treat mid-stream connection failures as end-of-input instead of throwing anHttpDataSourceException#3460.
- Fix an issue where
- HLS extension:
- Parse
VIDEO-RANGE(PQandHLG) onEXT-X-STREAM-INFandEXT-X-I-FRAME-STREAM-INFintoFormat.colorInfo#3441. - Fix
NullPointerExceptionwhen parsing MPEG-TSEXT-X-MAPinitialization segments that contain PES media samples #3456. - Fix regression where
Format.idandFormat.metadatawerenullfor exposed HLS tracks #3402. - Clip asset-list ads to
X-PLAYOUT-LIMITand skip those that fall entirely past the limit, and default the content resume offset to 0 when an interstitial omitsX-RESUME-OFFSETand its duration is unknown even ifX-PLAYOUT-LIMITis set. - Fix an issue where resolving an
X-ASSET-LISTinterstitial overwrote the content resume offset contributions of other interstitials in the same ad group.
- Parse
- DASH extension:
- Support parsing Alternative MPD Insertion (
urn:mpeg:dash:event:alternativeMPD:insert:2025) and Replacement (urn:mpeg:dash:event:alternativeMPD:replace:2025) events inDashManifestParserand expose them asAlternativeMpdEventinstances inPeriod.alternativeMpdEvents. This is a breaking change for apps that subclassDashManifestParser:DashManifestParser.buildPeriodnow takes an additionalList<AlternativeMpdEvent>parameter and the previous overload has been removed. Apps overridingDashManifestParser.parseEventStream(XmlPullParser)must overrideDashManifestParser.parseEventStream(XmlPullParser, String)instead, as the former is deprecated and will be made private in a future release. - Parse CICP color information (
ColourPrimaries,TransferCharacteristics,MatrixCoefficients, andVideoFullRangeFlag) fromEssentialPropertyandSupplementalPropertydescriptors intoFormat.colorInfo#3426. - Support whitespace-separated lists of
@idvalues in trick mode (http://dashif.org/guidelines/trickmode) descriptor@valueattributes #3315. - Support parsing
<ProducerReferenceTime>inDashManifestParser, exposing it inAdaptationSet.producerReferenceTimes, and using it to populateTimeline.Window.presentationStartTimeMsandTimeline.Window.windowStartTimeMsfor VOD streams. - Add support for DASH Content Steering #1689.
- Fix a
NullPointerExceptionthat could occur when parsing a DASH manifest with a missing attribute in<UTCTiming>element #3436.
- Support parsing Alternative MPD Insertion (
- RTSP extension:
- Fix an
IllegalStateExceptioncrash that occurred when processing delayed network responses after the RTSP client was closed. - Fix issue where rapid scrubbing could incorrectly trigger the TCP protocol fallback mechanic.
- Fix an
IllegalStateExceptioncrash that can occur when processing delayed network responses after the RTSP client resets state during track reselection, session teardown, or uri redirection. - Fix issue where seeking again prior to playback restart could cause an
IllegalStateExceptioncrash. - Fix issue where seeking backward while a seek is already pending could cause audio dropout and video playback freeze.
- Fix an issue where H.264 and H.265 keyframe access units ending with an aggregation or non-IDR packet were not flagged as keyframes, causing playback to remain stuck in buffering #3434.
- Fix an
- Decoder extensions (FFmpeg, VP9, AV1, etc.):
- Opus extension: Fix JNI crash when decoding invalid Opus data.
- Opus extension: Fix discard padding being ignored when pre-skip and discard padding fall on the same packet #2576.
- Cast extension:
- Introduce
SessionAvailabilityListener.SessionUnavailableReasonto represent the reason for session unavailability, and provide an overloaded method forSessionAvailabilityListener.onCastSessionUnavailableto expose it. - Fix an issue where playback would unexpectedly resume locally after stopping a Cast session.
- Log an error when
RemoteMediaClientoperations (such as play, pause, speed change, repeat mode, volume, mute, or track selection) fail inRemoteCastPlayer#3373. - Fix
ArrayIndexOutOfBoundsExceptioninRemoteCastPlayerwhen the Cast receiver queue changes or shrinks while a seek operation is pending #3372. - Fix an issue with the default Cast receiver where the timeline only populated media items immediately surrounding the active item rather than the entire playlist #3129.
- Update the timeline and playback position immediately when modifying the playlist (
setMediaItems,addMediaItems,moveMediaItems,removeMediaItems) or seeking inRemoteCastPlayer, and queue successive playlist operations so they execute reliably in order #2639 #3272. - Fix an issue where calling
addMediaItemson an empty queue inRemoteCastPlayerfailed to load the media items on the Cast receiver #2402. - Fix an issue in
RemoteCastPlayerwhere reaching the end of the Cast receiver queue cleared the timeline instead of retaining the playlist. - Fix an issue where
playWhenReady,repeatMode, andplaybackParameterswere not transferred or applied when set onRemoteCastPlayerbefore loading media items (for example, during local-to-remote playback transfer inCastPlayer) #889.
- Introduce
- Demo app:
- Add support for DRM-protected media items and an additional HLS sample stream to the session demo app catalog.
- Configure
RemoteCastPlayerwith aCastTrackSelectorin the session demo app to enable subtitle and audio track selection while casting.
- Remove deprecated symbols:
- Remove
DashUtil.buildDataSpec(Representation, RangedUri, int)andDashUtil.buildDataSpec(Representation, String, RangedUri, int). UseDashUtil.buildDataSpec(Representation, BaseUrl, RangedUri, int, Map<String, String>)instead.
- Remove
- Build:
- Increase Gradle
minSdkto 24.
- Increase Gradle
No changes from 1.3.0-alpha02
Important changes since 1.0.0:
- Adopted JSpecify nullability annotations
API Changes
- Added EXTRA_SYSTEM_FALLBACK_PICK_IMAGES_REQUEST_LOCATION_METADATA_ACCESS to
PickVisualMediato allow requesting location metadata access in system fallback pickers. Ie5917 - Renamed artifact
androidx.photopicker:photopickertoandroidx.photopicker:photopicker-embedded(packageandroidx.photopicker.embedded),androidx.photopicker:photopicker-composetoandroidx.photopicker:photopicker-embedded-compose(packageandroidx.photopicker.embedded.compose), andandroidx.photopicker:photopicker-testingtoandroidx.photopicker:photopicker-embedded-testing(packageandroidx.photopicker.embedded.testing). I48b9b b/537430760 - Refactored
EmbeddedPhotoPickerStateto exposesurfacePackageandnotifyVisibilityChangedand added andonErrorcallback. Ifa4b0 - Added
setLocationMetadataAccessRequestedtoPickVisualMediaRequestto allow requesting location metadata access in Photo Picker requests. Idde80 - Migrated
PickVisualMediaandPickMultipleVisualMediacontracts, andPickVisualMediaRequestto the newphotopicker-activityartifact. Copied tests. I2a201 b/530216959 - Removed the
inputsparameter fromrememberEmbeddedPhotoPickerState. To reset the state when inputs change, wrap the call in akeyblock instead. I8a0c5 - Lowered the
minSdkof the androidx.photopicker:photopicker and androidx.photopicker:photopicker-compose libraries to 23. I94e42 b/524083018 Revising Embedded PhotoPicker Compose APIsIe32c9- New libraries for Photopicker I0f52a
- New testing library for photopicker I7c1ec
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521compileSdkfor Compose libraries updated to 37.1. This will require transitively updatingcompileSdkfor all apps and libraries using Compose. I05b0f- Updated Compose compileSdk to API 37. This means that a minimum AGP version of 9.2.0 is required when using Compose. Id45cd
New Features
- Introduced the
androidx.compose.remote:remote-creation-expressionlibrary, which will be expanded in upcoming releases with platform-agnostic expressions and remote state representations. I4f4f2
API Changes
- Added
RemoteTimeVariablesandRemoteConfigurationobjects for accessing time, animation, and display/window context variables asRemoteFloat,RemoteIntandRemoteDp. I277c8 - Added
currentProfileSupportsThemedColors(),currentProfileSupportsTouchModifiers(), andcurrentProfileSupports() to check whether the currentRemoteComposecreation profile supports themed colors, touch modifiers, or specific operations. I7b312 - Fixed
RemoteModifier.animateEnterExitto defaultanimationIdto -1 instead of 0 so enter/exit transitions are enabled, added an optionalanimationIdparameter, and disallowed 0 insharedElement,sharedBounds, andanimateEnterExit. I3e5bf - Decoupled
RemoteDpandRemoteDensityfrom Compose UIDpandTextUnittypes. Ib42cd I31b37 - Removed
combinedFontVariationSettingsfromRemoteTextStyleand addedfontFeatureSettingstoRemotePaintto honor Compose separation of font features and font variations. I91856
Bug Fixes
RemoteTextStyle.fromTextStylenow selects font variation settings from the font that matches the style's font weight and font style. I2ab39- Fixed
pendingIntentActionnot sending itsPendingIntentin the embedded player and launcher widgets, andhostActionwith a dynamic name losing its value. Ic1726 - Fixed multi-line
CenterandEndtext alignment inCoreText. I9867c - Fixed
captureSingleRemoteDocumentoccasionally capturing stale state written by an effect when another thread applied a snapshot concurrently. Ib09f9 - Fixed nan encoded variable id comparisons in
RemoteComposeexpression caches. Ibdc73 - Fixed
TouchExpressionsnot responding to touch in the embeddedRcPlayer. Ida924 - Remote scroll containers in the embedded
RcPlayerno longer pass leftover same-axis scroll to an enclosing host scroll container. Ia193b - Fixed double and long clicks in the embedded
RcPlayeron components that also have a single click, and added support for touch down, up and cancel modifiers. I7372f - Fixed animated expression evaluation, document click areas, and haptic feedback in the embedded
RcPlayer. I1156e I18831 Idfc6e
API Changes
- Added
setPreparedStatementCacheSize(maxCacheSize: Int)toRoomDatabase.Builderon Android to allow configuring or disabling the per-connection prepared statement cache. I7b0cb b/560123297 - Added
allowDataLossOnRecovery()toRoomDatabase.Builderto allow recovering from database opening and corruption failures. Ie86ba b/316945228 - Libraries now target Kotlin 2.2 and require kotlinc 2.2 I82396 b/498369605
- Fixed an issue where DAO queries with
@Relationand non-deterministic clauses (such asORDER BY RANDOM() LIMIT :count) re-executed the query on statement reset, causing relationship mapping failures. Id0992 b/413924560
Bug Fixes
- Fixed fully expanded transitive type aliases in KSP by recursively resolving type aliases and properly resetting type arguments. I8228d0 b/561698196
Major features of 1.0.0:
- Jetpack XR Runtime is now stable! The Jetpack XR Runtime library contains common classes, interfaces, and utilities used by the ARCore for Jetpack XR, SceneCore, and XR Compose libraries and their clients.
- For more information, see our Developer Guide for Jetpack XR, as well as the XR Runtime API Reference.
API Changes
- Added dynamic mesh update APIs (
MeshBuffer.createDynamic,MeshBuffer.updateVertexData,MeshBuffer.updateIndexData, and a dynamicCustomMesh.BuilderFromMeshDataconstructor) to support updating vertex and index data at runtime. Ia1ecb - Change
Quad.createFromCornerstoQuad.fromCornersandQuad.createAxisAlignedtoQuad.fromMinMax. Idef53 - Libraries now target Kotlin 2.2 and require kotlinc 2.2 I82396 b/498369605
- Add SPATIAL_API_V4 to
SpatialApiVersionsI71e7a
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521Session.createnow returns the existing Session if one has already been created for the givenContext, and throws anIllegalStateExceptionif the existingSessionwas created with a differentLifecycleOwner. I9fcd7- Removed Activity context leak in
XrDevice. I71996 - Fixed a bug where
XrDevicelifecycle observers were incorrectly registered usinglifecycleScope, which led to premature cancellation and potential context leaks during Activity teardown. The registration now correctly uses a persistentCoroutineScopelinked to the main dispatcher. I6b2676b071870e4687cf2eb5718932f9df181c61
API Changes
API Changes
- Libraries now target Kotlin 2.2 and require kotlinc 2.2 I82396 b/498369605
Note: This is intended to be the last beta release.
New Features
- Added a "Subtitle Cue" tab to
VerticalTextSampleActivityto demonstrateVerticalTextcapabilities, including rendering with wrapped height,toVerticalTextStyle(),RubySpan,EmphasisSpan, Tate-chu-yoko,FontShearSpan,UnderlineSpan, andStrikethroughSpan. I4799d1 b/571750156
Bug Fixes
- Fixed horizontal
RubySpanandEmphasisSpanline height when using fonts with large top and bottom padding such as Noto Sans JP. Ib0507 b/557316470 - Thanks for the report, Numero-san! - Updated Compose dependencies to
1.12.1. I9ee7f b/569780191 VerticalTextnow appliesAnnotatedStringspan styles and preservesAnnotatedStringspans and annotations in semantics. Ib077f b/502088091- Fixed
RubySpanandEmphasisSpannot filling the background color ofTextPaint.bgColororBackgroundColorSpanin horizontal layout. I66ba8 b/561269843 - Fixed background colors in vertical text that were drawn as outlines after a span set
Paint.Style.STROKE. I692ed b/566429122 CharacterStylespans that cover a fullRubySpanrange inVerticalTextLayoutnow also apply to the ruby text, andRubySpan.textScalescales the font sizes that they set. Background colors now also fill the empty space above and below the shorter of the ruby text and the base text. I0dadc b/564268825- Fixed
VerticalTextLayoutbackground height when upright text has multiple style runs. I7e31a b/565211671 - Fixed
VerticalTextretaining a stale background color whenVerticalTextStyle.backgroundchanges toColor.Unspecified. Ia0861 b/565211671 - Fixed horizontal ruby and emphasis layouts skipping
TextPaintfields when copying the caller paint. Ia3043 b/561269843 VerticalTextnow draws the background color fromVerticalTextStyle.backgroundbehind plainStringtext and behind plainStringruby annotations inRubySpan. If0493 b/564268825- Fixed horizontal ruby layout leaving the shared working paint scaled after initialization. I33760 b/561269843
- Fixed the vertical text sample app so that a pan gesture cannot move the text out of view. If0108 b/563461635
- Fixed the test app to demo emphasis mark position I3ffa3 b/559972132
- Added Kex symbolic execution branch tests for
LineLayout,TextUtils,CanvasCompat, andPaintCompat. I47edf b/569212211
Bug Fixes
- Fixed a race condition in the pool management where the same thread could concurrently flush and release packets, which caused potential deadlocks especially when using an
EmptyCoroutineContext. Ia0aef48c b/570135466
API Changes
- Renamed
PullToRefreshDefaults.indicatorShapetoIndicatorShapeand changedPullToRefreshStateto an interface. I95b98 - Added
showIndicatorDelayMillisparameter toModifier.oneHandedGestureto customize the delay beforeonGestureAvailableis invoked. Defaults toOneHandedGestureDefaults.ShowIndicatorDelayMillis(1 second). I38cc7 - Added
StatusBarSuppressionoverload with a content lambda to allow wrappingScreenScaffoldand suppressing the System Status Bar top-down while automatically resetting top content padding to 0.dp. I18ff9 - Added a discrete integer steps overload and
showMinimumSegmentparameter to Material 3Slider. Idce23 - Removed experimental feature flag
WearComposeFoundationFlags.isWarpingCurvedTextEnabled. Warped curved text is now always enabled by default. Ifc5c2 - Removed experimental feature flag
WearComposeMaterial3Flags.isSwipeToRevealDualFlingThresholdEnabled. The dual fling threshold behavior inSwipeToRevealis now always enabled. Ia8036
Bug Fixes
- Fixed a 1-frame visual glitch where
TimeTextwould momentarily appear when entering composition on an already scrolled-down list. Id13da - Fixed an issue where
ScreenScaffoldScrollIndicatorwould not reappear on scroll after idling when used without an enclosingAppScaffold. I445e5 - Fixed an issue where
PullToRefreshBoxindicator remained stuck on screen whenonRefreshdid not transitionisRefreshingtotrue. I097e2 - Added
PullToRefreshto Wear Compose Material 3 baseline profile. Ib8e13 - Update
PredictiveBackSceneto switchLocalScreenIsActive.currentto the target screen on navigation instantly. I3904b - Fixed an issue in
TransformingLazyColumnScrollInfoProviderwhereanchorItemOffsetfailed to reset to zero when content padding shrank while scrolled. I779a0 - Fixed
TransformingLazyColumnState.animateScrollToItemto smoothly center the target item without a final jump when items usetransformedHeight. I429c8 - Fixed an issue in
ScalingLazyColumnScrollInfoProviderwhereanchorItemOffsetfailed to reset to zero when content padding shrank while scrolled. Ie8b06 - Fixed
TransformingLazyColumnanimation issues by disabling animations during raw scroll passes. Iacfb4 - Added AndroidManifest.xml file for Wear Compose Material3, which configures the com.google.wear.ENABLE_GLOBAL_STATUS_BAR meta-data tagIc8804
API Changes
- Added
dynamicRemoteColorScheme() to create aRemoteColorSchemewhose colors follow the player's Android system (dynamic) colors. I35bf5 RemoteIntroOutroCurvedProgressIndicatorreplaces theRemoteCurvedProgressIndicatoroverload that tooktotalTimerDurationMillis. Its intro and outro animations play when the progress leaves its start and once it reaches its end, so it works for goals as well as timers. I96317- Added
RemoteMotionSchemeandRemoteMaterialTheme.motionSchemeto Remote Wear Material3, matching Wear Compose Material 3MotionScheme. I9bd93 - Remove
combinedFontVariationSettingsfromRemoteTextStyleto honor Compose separation of font features and font variations. I91856
Bug Fixes
RemoteTextStyle.fromTextStylenow selects font variation settings from the font that matches the style's font weight and font style. I2ab39- Added
RemoteSegmentedCircularProgressIndicatorto Remote Wear Material3. I814b7 - Added
RemoteTextToggleButtonto Remote Wear Material3. Ie5d96 - Added
RemoteIconToggleButtonto Remote Wear Material3. I825b2 - Fixed
RemoteCurvedProgressIndicatorlosing its gap at low progress whendotCollapsible = false. Iac3d2 - Fixed
RemoteSplitCheckboxButton,RemoteSplitRadioButton, andRemoteSplitSwitchButtonouter corners appearing square on renderers that do not apply the outer rounded clip. I59e93 RemoteTypographynow preserves font variation settings from the font that matches each style's font weight and font style alongsidefontFeatureSettings. I2ab39
Important changes since 1.17.0:
- Cross-Origin Isolation Management: Introduces new profile-level APIs (
Profile#setCrossOriginIsolatedAllowlistandgetCrossOriginIsolatedAllowlist) to allow the use ofSharedArrayBufferand other APIs that require cross-origin isolation. Web pages must also opt in by setting theDocument-Isolation-Policyheader as appropriate. When this feature is used, origins on the allowlist will be permitted to use these APIs despite not being fully cross-origin isolated. Care must be taken to only allowlist trusted origins. - Prefetch Queue Draining Control: Adds a new
WEBVIEW_NAVIGATE_DRAIN_PREFETCHconstant toWebViewFeaturewhich can be used to determine whetherNavigation#navigatewill drain the prefetch queue before navigating to the new URL. - API Modernization & Cleanups: Includes several method renames for clarity.
PrefetchParameters#isJavaScriptEnabledhas been renamed toincludeClientHints, with the older method now marked as deprecated, andisJavaScriptEnabledmarked as deprecated. Additionally,Profile#addQuicHintshas been renamed topreferQuicFor.
API Changes
- Enabled battery state tests with
ProjectedTestRuleI6f56d - Added
ProjectedActivityCompat.setActivityAsInputReceiverandclearActivityAsInputReceiverto allow apps to specify exactly which component should be relaunched and receive input focus when system-initiated focus shifts occur on displayless devices. Id21e5
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. I99bfd b/556807521- Fixed an issue in
isProjectedDeviceConnectedwhere the host device context was not correctly created, leading to potential issues accessing system services.