mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-30 07:46:22 +00:00
enhance proximity sensor support
This commit is contained in:
parent
60229cd20f
commit
3d5f8b0447
1 changed files with 1 additions and 2 deletions
|
|
@ -989,8 +989,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
|
||||||
if (state == LinphoneCallConnected && !mCallCenter) {
|
if (state == LinphoneCallConnected && !mCallCenter) {
|
||||||
/*only register CT call center CB for connected call*/
|
/*only register CT call center CB for connected call*/
|
||||||
[self setupGSMInteraction];
|
[self setupGSMInteraction];
|
||||||
if (!_bluetoothEnabled)
|
[[UIDevice currentDevice] setProximityMonitoringEnabled:!(_speakerEnabled || _bluetoothEnabled)];
|
||||||
[self setSpeakerEnabled:FALSE];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Post event
|
// Post event
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue