Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Fix casting of Location.getCurrentPositionAsync#timeout param #2369

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

bbarthec
Copy link
Contributor

@bbarthec bbarthec commented Oct 5, 2018

Why

Resolves #2226

How

Fixed casting issue

Copy link
Member

@tsapeta tsapeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but what about this comment #2226 (comment) ?

async function getCurrentPositionAsync(options: {
timeout?: number,
enableHighAccuracy?: boolean,
maximumAge?: number,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not as LocationOptions type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed this, because I've added this timeout option, but I'll reverse it

@bbarthec
Copy link
Contributor Author

bbarthec commented Oct 9, 2018

I got no idea what is causing #2226 (comment). More specific info is needed here as I've never encountered such problem on testing devices.

@bbarthec bbarthec force-pushed the @bbarthec/location-getCurrentPositionAsync-timeout branch from e13e2ef to b314f99 Compare October 9, 2018 11:43
Copy link
Contributor

@esamelson esamelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! It seems like #2226 (comment) is a separate issue (doesn't involve timeout) so let's not worry about it for this PR.

Reminder to add timeout to docs :)

@bbarthec bbarthec force-pushed the @bbarthec/location-getCurrentPositionAsync-timeout branch from b314f99 to 4d480cb Compare October 16, 2018 08:51
@bbarthec bbarthec merged commit c4a9e7a into master Oct 16, 2018
@bbarthec bbarthec deleted the @bbarthec/location-getCurrentPositionAsync-timeout branch December 7, 2018 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants