mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

When the current MediaMetadata is automatically derived from the MediaItem and Tracks, the result may change when state.buildUpon() is used and new input data is provided (e.g. new current index). To avoid reusing the previously derived MediaMetadata, we need to reset it to null and re-evaluate it on every call to build() Issue: androidx/media#1940 PiperOrigin-RevId: 714021424