diff --git a/Classes/BuschJaegerCallView.m b/Classes/BuschJaegerCallView.m index 41715bc40..5f58060ff 100644 --- a/Classes/BuschJaegerCallView.m +++ b/Classes/BuschJaegerCallView.m @@ -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; }