diff options
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothAdapter.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java index 15f0f923c1..936a08569b 100644 --- a/framework/java/android/bluetooth/BluetoothAdapter.java +++ b/framework/java/android/bluetooth/BluetoothAdapter.java @@ -3480,6 +3480,9 @@ public final class BluetoothAdapter { } else if (profile == BluetoothProfile.LE_AUDIO) { BluetoothLeAudio leAudio = new BluetoothLeAudio(context, listener, this); return true; + } else if (profile == BluetoothProfile.LE_AUDIO_BROADCAST) { + BluetoothLeBroadcast leAudio = new BluetoothLeBroadcast(context, listener); + return true; } else if (profile == BluetoothProfile.VOLUME_CONTROL) { BluetoothVolumeControl vcs = new BluetoothVolumeControl(context, listener, this); return true; @@ -3587,6 +3590,10 @@ public final class BluetoothAdapter { BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy; leAudio.close(); break; + case BluetoothProfile.LE_AUDIO_BROADCAST: + BluetoothLeBroadcast leAudioBroadcast = (BluetoothLeBroadcast) proxy; + leAudioBroadcast.close(); + break; case BluetoothProfile.VOLUME_CONTROL: BluetoothVolumeControl vcs = (BluetoothVolumeControl) proxy; vcs.close(); |