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

This ensures that media button preferences with slots for BACK, FORWARD and OVERFLOW are converted to the legacy custom layout according to the implicit placement rules. This has to happen when populating the MediaSessionCompat and when generating the notification for older APIs. Sending these preferences to older Media3 controllers can filter them down to the custom layout the session would have used previously, but there is no need to adjust the reservation extras because the older Media3 custom layout has no concept of these extras. PiperOrigin-RevId: 689761637
Session test module
Tests cross-process use of the session module. To run the tests:
- Prepare a device (either an emulator or a real device) to run the tests on.
- Run
./gradlew :test-session-current:cAT