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

Commit c8c9eb5b authored by Jack He's avatar Jack He Committed by Gerrit Code Review
Browse files

Merge "Add LE_AUDIO_BROADCAST_ASSISTANT support in BluetoothAdapter"

parents 599f65df 12e7a292
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3665,6 +3665,10 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.LE_CALL_CONTROL) {
            BluetoothLeCallControl tbs = new BluetoothLeCallControl(context, listener);
            return true;
        } else if (profile == BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT) {
            BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                    new BluetoothLeBroadcastAssistant(context, listener);
            return true;
        } else {
            return false;
        }
@@ -3779,6 +3783,11 @@ public final class BluetoothAdapter {
                BluetoothLeCallControl tbs = (BluetoothLeCallControl) proxy;
                tbs.close();
                break;
            case BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT:
                BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                        (BluetoothLeBroadcastAssistant) proxy;
                leAudioBroadcastAssistant.close();
                break;
        }
    }