mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Repair autoanswer_notif_preference
This commit is contained in:
parent
ce3cbdaecd
commit
18820ca543
1 changed files with 9 additions and 2 deletions
|
|
@ -110,10 +110,17 @@
|
|||
}
|
||||
instance->currentCallContextBeforeGoingBackground.call = 0;
|
||||
} else if (linphone_call_get_state(call) == LinphoneCallIncomingReceived) {
|
||||
if (linphone_core_get_calls_nb(LC) > 1 ||
|
||||
(floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)) {
|
||||
if ((floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)) {
|
||||
if ([LinphoneManager.instance lpConfigBoolForKey:@"autoanswer_notif_preference"]) {
|
||||
linphone_core_accept_call(LC, call);
|
||||
[PhoneMainView.instance changeCurrentView:CallView.compositeViewDescription];
|
||||
} else {
|
||||
[PhoneMainView.instance displayIncomingCall:call];
|
||||
}
|
||||
} else if (linphone_core_get_calls_nb(LC) > 1) {
|
||||
[PhoneMainView.instance displayIncomingCall:call];
|
||||
}
|
||||
|
||||
// in this case, the ringing sound comes from the notification.
|
||||
// To stop it we have to do the iOS7 ring fix...
|
||||
[self fixRing];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue