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

Skip to content
Commit 7f23913c authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Łukasz Rymanowski (xWF)
Browse files

ActiveDeviceManager: Fix handling disconnect of a streaming set member

This patch fixes issue when after disconnecting LeAudio device while
stream, music was transfered to the Speaker.

ActiveDeviceManager, while handling disconnection of the first set
member, incorrectly assumed that another set member is a fallback
device. Then, ActiveDeviceManager instructed LeAudioService to remove
itself from being Active device, but also set flag `hasFallbackDevice`
which later cause the problem

Bug: 367213572
Bug: 374320313
Test: atest ActiveDeviceManagerTest
Flag: com.android.bluetooth.flags.adm_fix_disconnect_of_set_member

Change-Id: I6ea853a2565f9ce56ef8eaa6df8d4d515c065a8d
parent 729bf28b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment