Skip to content

Commit

Permalink
ios: fix proximity not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlin committed Dec 21, 2017
1 parent de60bee commit 11ecbe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNInCallManager/RNInCallManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ - (void)startProximitySensor
}

NSLog(@"RNInCallManager.startProximitySensor()");
//_currentDevice.isProximityMonitoringEnabled = YES;
_currentDevice.proximityMonitoringEnabled = YES;

// --- in case it didn't deallocate when ViewDidUnload
[self stopObserve:_proximityObserver
Expand Down Expand Up @@ -743,7 +743,7 @@ - (void)stopProximitySensor
}

NSLog(@"RNInCallManager.stopProximitySensor()");
//_currentDevice.isProximityMonitoringEnabled = false
_currentDevice.proximityMonitoringEnabled = NO;

// --- remove all no matter what object
[self stopObserve:_proximityObserver
Expand Down

0 comments on commit 11ecbe7

Please sign in to comment.