commit | 2ace692908f7f3aba2537d2ed477273c844fa876 | [log] [tgz] |
---|---|---|
author | Kyunglyul Hyun <klhyun@google.com> | Mon Jun 29 17:34:02 2020 +0900 |
committer | Kyunglyul Hyun <klhyun@google.com> | Mon Jun 29 21:12:09 2020 +0900 |
tree | 80506ce20d48b4236b6d1f8b6a06caf37533689d | |
parent | f629b618a446a45b5b3d8d95290f0c170e4ea208 [diff] |
Handle Active device changed A2DP <-> Hearing Aid When the active device is changed from A2DP to Hearing aid, Both BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED and BluetoothHearingAid.ACTION_ACTIVE_DEVICE_CHANGED are broadcasted. One of them may nullify the other, which resulted in null active routes. By handling devices of each type separately, we can resolve the issue. Bug: 159757784 Test: Manaully tested with A2DP devices only Change-Id: I6d5b61ec9b8ddf447b3d36b14c0325953193ab3b