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

Skip to content
Commit 448109d3 authored by Alice Kuo's avatar Alice Kuo
Browse files

connectAllSupportedProfile as all connection policy are set to UNKNOWN

CONNECTION_POLICY_UNKNOWN is the default value, and it only be cleared
as unpair. If the device is connected after the pairing, it would
connectAllSupportedProfile with setConnectionPolicy to
CONNECTION_POLICY_ALLOWED.

With LE audio only device combine with LE audio toggle, it would be
possible that all the supported profile become
CONNECTION_POLICY_FORBBIDEN. We should check if one of the profile is
ALLOWED or FORBBIDEN, we would only connect the enabled profile, and not
to overwrite the connection policy setting

Also contains minor refactor in this change about
connectAllSupprotedProfile, it would make the improvement on the
readability on log and code

Bug: 279366294
Test: disable le audio toggle, and then connect/disconnect device
Change-Id: I69da124ee955c9b4714c3b6091feadad7772d3fe
parent 41acc1fd
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