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

Skip to content
Commit 5ebfd59c authored by Hsin-yu Chao's avatar Hsin-yu Chao
Browse files

Fix incorrect previous active device

Previous commit moves the code around and cause an issue that, in
headset service, the previous active device is passed to audio server
_after_ it got reset to null, causing the SCO port not removed.

Bug: 381169303
Bug: 315234036
Flag: com::android::bluetooth::flags::is_sco_managed_by_audio
Test: atest HeadsetServiceTest
Connect BT headset then disconnect, verify by command
adb shell dumpsys audio  | grep BluetoothActiveDeviceChanged

Change-Id: I437b90f009593bf3dc1770595df42683e1e130d6
parent 87926c63
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