Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c225615f authored by Alex Dadukin's avatar Alex Dadukin
Browse files

Fix A2DP device is not made active when connected

The issue is happening when we disconnect and connect the device again.
On the next connection ACTION_ACTIVE_DEVICE_CHANGED and
ACTION_CONNECTION_STATE_CHANGED can be delivered in order.
If ACTION_ACTIVE_DEVICE_CHANGED happens before then mBluetoothRoutes
does not have a valid BT route which result in UMO issues.

We handle this scenario for hearing aidand LE devices but not for A2DP
devices. This CL changes the handling of A2DP devices similar to what
we have for other profiles.

Test: tested manually (see more details in the bug)
Bug: b/299268431
Change-Id: I432f9413b0b46a7c92a1061f94d88a3700fd82dd
parent 8aacb817
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment