mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
avoid speaker button to switch from on to off at the begenning of a call
This commit is contained in:
parent
92a44480e1
commit
3a9326a9eb
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@
|
|||
withDisplayName:displayName];
|
||||
[call setEnabled:false];
|
||||
[callDuration setText:NSLocalizedString(@"Calling...",nil)];
|
||||
[speaker reset];
|
||||
if ([speaker isOn]) [speaker toggle] ; //preset to off
|
||||
}
|
||||
|
||||
-(void) displayIncallFromUI:(UIViewController*) viewCtrl forUser:(NSString*) username withDisplayName:(NSString*) displayName {
|
||||
|
|
@ -226,7 +226,7 @@
|
|||
if (linphone_call_get_dir(linphone_core_get_current_call([LinphoneManager getLc])) == LinphoneCallIncoming) {
|
||||
[self displayIncalViewforUser:username
|
||||
withDisplayName:displayName];
|
||||
[speaker reset];
|
||||
if ([speaker isOn]) [speaker toggle] ; //preset to off;
|
||||
}
|
||||
}
|
||||
//status reporting
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue