
We currently update this value for controllers to match the availability of the associated command. This however makes it impossible to mark a button as unavailable if the command is available. This can be refined by only setting the 'enabled' field to false if the command is not available, not the other way round. And we should also enable the button by default as disabling is the unusual case not many apps will use. In addition, this change fixes missing update logic when the player commands changed and it adds some additional test coverage for all these cases. PiperOrigin-RevId: 612881016
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