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

Commit 54734e50 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Disable broadcast initialization if profile is not enabled

Bug: 150670922
Sponsor: @jpawlowski
Test: Compile
Change-Id: I4bfe53da08256f8045083152d92ca07fc2873eb1
parent 4ff2eae5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
    <bool name="profile_supported_mapmce">false</bool>
    <bool name="profile_supported_hid_device">true</bool>
    <bool name="profile_supported_le_audio">true</bool>
    <bool name="profile_supported_le_audio_broadcast">false</bool>
    <bool name="profile_supported_vc">true</bool>
    <bool name="profile_supported_mcp_server">true</bool>
    <bool name="profile_supported_csip_set_coordinator">true</bool>
+2 −2
Original line number Diff line number Diff line
@@ -4526,8 +4526,8 @@ public class AdapterService extends Service {
     * @return true, if the LE audio broadcast source is supported
     */
    public boolean isLeAudioBroadcastSourceSupported() {
        //TODO: check the profile support status as well after we have the implementation
        return mAdapterProperties.isLePeriodicAdvertisingSupported()
        return  getResources().getBoolean(R.bool.profile_supported_le_audio_broadcast)
                && mAdapterProperties.isLePeriodicAdvertisingSupported()
                && mAdapterProperties.isLeExtendedAdvertisingSupported()
                && mAdapterProperties.isLeIsochronousBroadcasterSupported();
    }