| commit | 4835ed1e2290114b415b45ca6c7c2f1bdaa48a16 | [log] [tgz] |
|---|---|---|
| author | Wenyu Zhang <zhangwenyu@google.com> | Fri Dec 06 00:43:03 2024 +0000 |
| committer | Wenyu Zhang <zhangwenyu@google.com> | Fri Dec 06 00:43:03 2024 +0000 |
| tree | ec3a60dc01dbbff2f7368f873fd329722f849d1a | |
| parent | b08834b5b2ff75d0b3bac99e2c43d8a40634670c [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