From 0fe825571946cfb1c1167c27f2781f49e6bcf52c Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Thu, 21 Dec 2017 14:26:24 +0100 Subject: [PATCH] [ProximitySensor] clean source code --- Classes/CallView.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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