diff options
| author | 2022-11-18 12:04:19 +0100 | |
|---|---|---|
| committer | 2022-11-18 19:49:14 +0000 | |
| commit | 4e57c38cc6ec665f32be2ead7966aaf574f0cf7a (patch) | |
| tree | 5286a0852d3d5674dea50baeb32ef1ff1dc02078 /api/api.go | |
| parent | 858e21b54f4197d348873a82381ba9feb5e17b6a (diff) | |
AudioService: fix volume behavior for dock devices
In AudioService.getDeviceVolumeBehaviorInt(), prefer using the
internal device type determined by the AudioDeviceAttributes constructor
rather than converting back from the derived SDK type. This avoids
potential double conversions (internal > SDK > internal) that can yeld
to problems in case of non bijective mapping from internal to SDK types
In AudioDeviceInfo.
Bug: 237378890
Test: make
Change-Id: I8ba167e719d2b060edd0dfe6c549273132cb85d8
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions