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

Commit d0a491ce authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "Add LE_AUDIO_BROADCAST_ASSISTANT support in BluetoothAdapter" am: c8c9eb5b

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