mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
GeoLocation timeout never called on android
Summary:Don't add systems current time to the `timeout` option. This is already correct on iOS. Closes https://github.com/facebook/react-native/pull/6376 Differential Revision: D3053728 Pulled By: mkonicek fb-gh-sync-id: 919068659d0d23906d8a6d85df7819296460b719 shipit-source-id: 919068659d0d23906d8a6d85df7819296460b719
This commit is contained in:
parent
3e760f48c5
commit
09820cbe36
@ -280,7 +280,7 @@ public class LocationModule extends ReactContextBaseJavaModule {
|
||||
|
||||
public void invoke() {
|
||||
mLocationManager.requestSingleUpdate(mProvider, mLocationListener, null);
|
||||
mHandler.postDelayed(mTimeoutRunnable, SystemClock.currentTimeMillis() + mTimeout);
|
||||
mHandler.postDelayed(mTimeoutRunnable, mTimeout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user