Skip to content

Commit 8981426

Browse files
whck6zxcpoiu
authored andcommitted
disable proximityMonitoringEnabled when startProximitySensor method
1 parent 6065384 commit 8981426

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/RNInCallManager/RNInCallManager.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,9 @@ - (void)startProximitySensor
714714
}
715715

716716
NSLog(@"RNInCallManager.startProximitySensor()");
717-
_currentDevice.proximityMonitoringEnabled = YES;
718-
717+
// _currentDevice.proximityMonitoringEnabled = YES;
718+
_currentDevice.proximityMonitoringEnabled = NO;
719+
719720
// --- in case it didn't deallocate when ViewDidUnload
720721
[self stopObserve:_proximityObserver
721722
name:UIDeviceProximityStateDidChangeNotification

0 commit comments

Comments
 (0)