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

Skip to content
Commit 22a39312 authored by Yiyi Shen's avatar Yiyi Shen
Browse files

[Audiosharing] Fix race condition in AudioSharingRepository provides

BluetoothUtils#isAudioSharingEnabled will check broadcast/assistant
profile support by checking BluetoothAdapter#isLeAudioBroadcastXXXSupported.

BluetoothAdapter#isLeAudioBroadcastXXXSupported can return error value
when BT is not enabled, even broadcast feature is supported.

However, we can not make sure AudioSharingRepository is provided after
BT is enabled during device boot on.

Thus we only check flag when providing AudioSharingRepository, profile
support has already been checked in the repository impl.

Test: atest
Bug: 336716411
Flag: com.android.settingslib.flags.volume_dialog_audio_sharing_fix
Change-Id: I1c9e213e883155e43c90249901d1909873302d1d
parent 59002e70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment