diff --git a/Classes/CallView.m b/Classes/CallView.m index f67ce1c92..4f416edb4 100644 --- a/Classes/CallView.m +++ b/Classes/CallView.m @@ -179,7 +179,6 @@ static UICompositeViewDescription *compositeDescription = nil; [super viewDidAppear:animated]; [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; - //UIDevice.currentDevice.proximityMonitoringEnabled = !_speakerButton.enabled; [[UIDevice currentDevice] setProximityMonitoringEnabled:TRUE]; [PhoneMainView.instance setVolumeHidden:TRUE]; @@ -220,7 +219,7 @@ static UICompositeViewDescription *compositeDescription = nil; [super viewDidDisappear:animated]; [[UIApplication sharedApplication] setIdleTimerDisabled:false]; - UIDevice.currentDevice.proximityMonitoringEnabled = NO; + [[UIDevice currentDevice] setProximityMonitoringEnabled:FALSE]; [PhoneMainView.instance fullScreen:false]; // Disable tap