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:
Alexander Andersson 2016-03-15 11:54:26 -07:00 коммит произвёл Facebook Github Bot 5
Родитель 3e760f48c5
Коммит 09820cbe36
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
}
}