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

This methods allows to replace single items or a range of items directly without using separate operations for add and remove. The advantage is more readable code for apps and the potential for player implementations to optimize this process (e.g. only replace values without interrupting playback). The current change just introduces the API with its default behavior. The default logic will be removed again in the future in favor of better logic in the Player implementations. Issue: google/ExoPlayer#8046 PiperOrigin-RevId: 532151471 (cherry picked from commit b1cfeb04a0e9a1e0f08917e621bd40968db68c01)