summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Wenyu Zhang <zhangwenyu@google.com> 2024-12-06 00:43:03 +0000
committer Wenyu Zhang <zhangwenyu@google.com> 2024-12-06 00:43:03 +0000
commit4835ed1e2290114b415b45ca6c7c2f1bdaa48a16 (patch)
treeec3a60dc01dbbff2f7368f873fd329722f849d1a /api/api.go
parentb08834b5b2ff75d0b3bac99e2c43d8a40634670c (diff)
Only activate device that is not existed previously
Since onAudioDevicesAdded is called not only when new device is hot plugged, but also when the switcher dialog is opened, adding a check to make sure only activate if the device does not exist previously. Change-Id: Icf9756c38ed78be7898e5094f62627025bdb253c Bug: b/379798051, b/355684672 Test: InputRouteManagerTest Flag: com.android.media.flags.enable_audio_input_device_routing_and_volume_control
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions