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

Skip to content
Commit 4276c09b 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: I7106b7516706c542be1fbdad65067b3b09de6a61
parent ba63ef90
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