mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Enable proximity sensor in call view
This commit is contained in:
parent
16903f3bc5
commit
851e4d8ac1
1 changed files with 6 additions and 0 deletions
|
|
@ -201,6 +201,9 @@
|
|||
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
|
||||
[self orientationUpdate:[[UIDevice currentDevice] orientation]];
|
||||
}
|
||||
|
||||
UIDevice *device = [UIDevice currentDevice];
|
||||
device.proximityMonitoringEnabled = YES;
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated{
|
||||
|
|
@ -219,6 +222,9 @@
|
|||
name:UIDeviceOrientationDidChangeNotification
|
||||
object:nil];
|
||||
}
|
||||
|
||||
UIDevice *device = [UIDevice currentDevice];
|
||||
device.proximityMonitoringEnabled = NO;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue