media/libraries/session/src/main
bachinger 5c50b27e8f Return null if media notification controller Future is not done
When the media notification controller is requested for a session
with `getConnectedControllerForSession` and the `Future` is not null
but not yet completed, the `Future` was returned either way. This was
reported as creating a race condition between the notification
being requested for update the very first time, and the media
notification controller having completed connecting to the session.

Returning null from `getConnectedControllerForSession` when the
`Future` is available but not yet done fixes the problem. This is
safe because for the case when a notification update is dropped,
the media notification controller will trigger the update as soon
as the connection completes.

Issue: androidx/media#917
#minor-release
PiperOrigin-RevId: 595699929
2024-01-04 07:35:54 -08:00
..
aidl/androidx/media3/session Move setAudioAttributes from ExoPlayer to Player 2023-09-19 06:08:37 -07:00
java/androidx/media3/session Return null if media notification controller Future is not done 2024-01-04 07:35:54 -08:00
res Suppress NewApi lint warning on <vector> usage in drawables 2023-07-05 09:08:51 +00:00
AndroidManifest.xml Update to androidx.media3 2021-10-27 09:12:46 +01:00