A fix for: https://github.com/transistorsoft/react-native-background-geolocation/issues/893 for some reason on Android 8, there ale calls to this function with a negative value preceding the correct call. This condition ensures that no negative value is ever passed to the setSmallestDisplacement method, as it crashes in such cases.
Overview
A fix for: https://github.com/transistorsoft/react-native-background-geolocation/issues/893 for some reason on Android 8, there ale calls to this function with a negative value preceding the correct call. This condition ensures that no negative value is ever passed to the
setSmallestDisplacement
method, as it crashes in such cases.