AudioService: Allow late Bluetooth profile service connection
If a Bluetooth device is connected by the Bluetooth stack before the corresponding profile service proxy has been initialized via the onServiceConnected callback, ignore the connecion request. When the service connection is received later, query the Bluetooth adapter for active devices on this profile and connected it. Also move resetting forced usage for media upon LE devices connection from AudioDeviceInventory.setBluetoothActiveDevice() to makeLeAudioDeviceAvailable() for consistency with A2DP. Bug: 295985930 Test: quickly disable/enable Bluetooth and verify music playback Change-Id: If598db52061417c8973bed506a689c92825b798a
Loading
Please register or sign in to comment