forked from mirrors/linphone-iphone
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) {
|
||||
/*only register CT call center CB for connected call*/
|
||||
[self setupGSMInteraction];
|
||||
if (!_bluetoothEnabled)
|
||||
[self setSpeakerEnabled:FALSE];
|
||||
[[UIDevice currentDevice] setProximityMonitoringEnabled:!(_speakerEnabled || _bluetoothEnabled)];
|
||||
}
|
||||
|
||||
// Post event
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue