From 68b319527f80071ded844d85d69ebb8e5e052090 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 6 Mar 2017 11:19:34 +0100 Subject: [PATCH] add enablement of bluetooth to bluetooth button --- Classes/LinphoneUI/UIBluetoothButton.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Classes/LinphoneUI/UIBluetoothButton.m b/Classes/LinphoneUI/UIBluetoothButton.m index b98cd72a4..c5cc4c2a2 100644 --- a/Classes/LinphoneUI/UIBluetoothButton.m +++ b/Classes/LinphoneUI/UIBluetoothButton.m @@ -31,13 +31,11 @@ LOGE(@"UIBluetoothButton error for %s: ret=%ld", method, au) - (void)onOn { - // AVAudioSessionPortDescription *_bluetoothPort = [AudioHelper bluetoothAudioDevice]; - //[[AVAudioSession sharedInstance] setPreferredInput:_bluetoothPort error:nil]; + [LinphoneManager.instance setBluetoothEnabled:TRUE]; } - (void)onOff { - // AVAudioSessionPortDescription *builtinPort = [AudioHelper builtinAudioDevice]; - //[[AVAudioSession sharedInstance] setPreferredInput:builtinPort error:nil]; + [LinphoneManager.instance setBluetoothEnabled:FALSE]; } - (bool)onUpdate {