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

Skip to content
Commit 2bb92151 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Don't remove auto-connect priority for A2DP connected devices

The original adjustOtherSinkPriorities() implementation has a bug
that could incorrectly reset the PRIORITY_AUTO_CONNECT for A2DP
connected device to PRIORITY_ON.
Note: the bug is specific to A2DP and does not apply to HFP.

Also, added a corresponding unit test: testSetPriorityMultipleDevices

Bug: 73902689
Test: Manual: re-connect multiple A2DP/HFP devices
      Unit test:
  runtest bluetooth \
    --test-class com.android.bluetooth.btservice.PhonePolicyTest \
    --test-method testSetPriorityMultipleDevices
Change-Id: Ieb28afef95fb83259cbff74632ea7ea7d38445dd
parent e2e75ad4
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