From bf68c70453c19022f2ce2883a0fcadc475016f61 Mon Sep 17 00:00:00 2001 From: Christopher Lais Date: Mon, 22 Nov 2010 19:11:44 -0600 Subject: Revert part of "GPS: Don't set XTRA download pending flag at boot time." libloc_api starts a thread as soon as the GPS is initialized, at which time the xtra callback is also cleared. If libloc_api gets a request for xtra data from the gps before the xtra callback has been set, it gets silently ignored, and never requests the data again. Since there is no method to see if data has been requested in the interface, we must assume that data has been requested. This would be better fixed in libloc_api by queuing the request until gps-xtra is initialized, but libloc_api is still proprietary for current devices. This reverts part of commit 88606634d1fa0c6245f9b4c0c1bbe67842eab16f. The typo fix was not reverted. Change-Id: I99a50dd64ff588d379dafb2974dd8d6b9229b6c6 --- location/java/com/android/internal/location/GpsLocationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java index 8e7e5af..be562f1 100755 --- a/location/java/com/android/internal/location/GpsLocationProvider.java +++ b/location/java/com/android/internal/location/GpsLocationProvider.java @@ -199,7 +199,7 @@ public class GpsLocationProvider implements LocationProviderInterface { // flags to trigger NTP or XTRA data download when network becomes available // initialized to true so we do NTP and XTRA when the network comes up after booting private boolean mInjectNtpTimePending = true; - private boolean mDownloadXtraDataPending = false; + private boolean mDownloadXtraDataPending = true; // true if GPS is navigating private boolean mNavigating; -- cgit v1.1