Closed Bug 1088128 Opened 10 years ago Closed 10 years ago

Add support for getCurrentPosition in Geoloc dev app

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: huseby, Assigned: huseby)

Details

Attachments

(1 file)

Currently, the Geoloc dev app only knows how to use the watchPosition functionality of the geolocation API.  As part of the adjustable location accuracy project, I needed a way to also test the getCurrentPosition part of the API.  This patch adds a new button for calling getCurrentPosition to fire off a single shot GPS position query.
I'm not sure who should review this.  I didn't want to bug Vivien, so you get it Jan :)
Attachment #8510408 - Flags: review?(janx)
Comment on attachment 8510408 [details] [review]
github pull request for geoloc dev app change.

(forwarding to original author)
Attachment #8510408 - Flags: review?(janx) → review?(lissyx+mozillians)
I updated the patch.  It no longer includes changes to the other locales.  Blame google translate :)  And thanks for moving the review.
I'm glad to see that this app is proven to be useful :)
Comment on attachment 8510408 [details] [review]
github pull request for geoloc dev app change.

See comments on Github: I'm fine with the change, but please factorize a bit between startGeoloc and getGeoloc. I know my code is not perfect, but I feel it's easy to avoid worse here.
Attachment #8510408 - Flags: review?(lissyx+mozillians) → review+
I updated the patch to include the feedback.
Flags: needinfo?(lissyx+mozillians)
Looks good to me, thanks, that was one of my early contribution to B2G :) !
Flags: needinfo?(lissyx+mozillians)
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: