enhance proximity sensor support

This commit is contained in:
Benjamin Reis 2018-01-10 13:48:52 +01:00
parent 60229cd20f
commit 3d5f8b0447

View file

@ -989,8 +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];
if (!_bluetoothEnabled)
[self setSpeakerEnabled:FALSE];
[[UIDevice currentDevice] setProximityMonitoringEnabled:!(_speakerEnabled || _bluetoothEnabled)];
}
// Post event