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

Skip to content
Commit 57a046e7 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: refactor BT profile management

Remove intent BluetoothAdapter.ACTION_STATE_CHANGED listener in AudioService
and only manage BT profiles disconnection via the profile service listener in BtHelper.
This removes possible race conditions between a disconnection received
via the intent and a connection via the service listener.
Also align BT Headset profile management on A2DP and LE Audio profile
management in AudioDeviceBroker, AudioDeviceInventory and BtHelper.
Process all profile related actions in AudioDeviceBroker message handler
for proper serialization.

Bug: 289681953
Test: make
Change-Id: Ie2b271a846455620fad9bbc519dd8b1876d78889
Merged-In: I7106b7516706c542be1fbdad65067b3b09de6a61
parent b712a758
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