media/libraries/session/src
bachinger 4a9cf7d069 Do not assume a valid queue in 3rd party sessions
This change fixes an issue that can be reproduced when
a controller `onConnect` creates a `QueueTimeline` out
of the state of a legacy session and then `prepare` is called.

`activeQueueItemId`, `metadata` and the `queue` of the legacy
session are used when a `QueueTimeline` is created. The change
adds unit tests to cover the different combinatoric cases these
properties being set or unset.

PiperOrigin-RevId: 505731288
2023-02-01 10:34:25 +00:00
..
androidTest Add injection of BitmapLoader from MediaSession. 2022-10-31 11:32:30 +00:00
main Do not assume a valid queue in 3rd party sessions 2023-02-01 10:34:25 +00:00
test Add the MediaSession as an argument to getMediaButtons() 2023-01-23 12:33:37 +00:00