Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
GeoLocation timeout never called on android
Browse files Browse the repository at this point in the history
Summary:Don't add systems current time to the `timeout` option. This is already correct on iOS.
Closes facebook#6376

Differential Revision: D3053728

Pulled By: mkonicek

fb-gh-sync-id: 919068659d0d23906d8a6d85df7819296460b719
shipit-source-id: 919068659d0d23906d8a6d85df7819296460b719
  • Loading branch information
axelander authored and Facebook Github Bot 5 committed Mar 15, 2016
1 parent 3e760f4 commit 09820cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private SingleUpdateRequest(

public void invoke() {
mLocationManager.requestSingleUpdate(mProvider, mLocationListener, null);
mHandler.postDelayed(mTimeoutRunnable, SystemClock.currentTimeMillis() + mTimeout);
mHandler.postDelayed(mTimeoutRunnable, mTimeout);
}
}
}

0 comments on commit 09820cb

Please sign in to comment.