From 63049d2fc72feb66ded5270cdbde38eec5e4d72a Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 21 May 2012 23:32:53 +0200 Subject: [PATCH] fix speaker button behavior --- Classes/IncallViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/IncallViewController.m b/Classes/IncallViewController.m index 31a06e8aa..436e65921 100644 --- a/Classes/IncallViewController.m +++ b/Classes/IncallViewController.m @@ -667,8 +667,8 @@ void addAnimationFadeTransition(UIView* view, float duration) { dismissed = false; UIDevice *device = [UIDevice currentDevice]; device.proximityMonitoringEnabled = YES; - if ([speaker isOn]) - [speaker toggle]; + //if ([speaker isOn]) + // [speaker toggle]; [self updateUIFromLinphoneState: YES]; } @@ -681,7 +681,7 @@ void addAnimationFadeTransition(UIView* view, float duration) { UIDevice *device = [UIDevice currentDevice]; device.proximityMonitoringEnabled = YES; if (call !=nil && linphone_call_get_dir(call)==LinphoneCallIncoming) { - if ([speaker isOn]) [speaker toggle]; + //if ([speaker isOn]) [speaker toggle]; } [self updateUIFromLinphoneState: YES];