From a1531bac766c42da1ded70677a28d4ddb4cf1a14 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Wed, 20 Dec 2017 15:54:44 +0100 Subject: [PATCH] [ProximitySensor] update proximitySensor management to fix specific case --- Classes/LinphoneManager.m | 1 + Classes/LinphoneUI/UIVideoButton.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index c4c794a2a..37509cc35 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -989,6 +989,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char if (state == LinphoneCallConnected && !mCallCenter) { /*only register CT call center CB for connected call*/ [self setupGSMInteraction]; + [self setSpeakerEnabled:FALSE]; } // Post event diff --git a/Classes/LinphoneUI/UIVideoButton.m b/Classes/LinphoneUI/UIVideoButton.m index accf67675..6b1b36ea7 100644 --- a/Classes/LinphoneUI/UIVideoButton.m +++ b/Classes/LinphoneUI/UIVideoButton.m @@ -58,7 +58,7 @@ INIT_WITH_COMMON_CF { if (!linphone_core_video_display_enabled(LC)) return; - + [LinphoneManager.instance setSpeakerEnabled:FALSE]; [self setEnabled:FALSE]; [waitView startAnimating];