summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Lais <chris+android@zenthought.org>2010-11-22 19:11:44 -0600
committerChristopher Lais <chris+android@zenthought.org>2010-11-22 19:58:06 -0600
commitbf68c70453c19022f2ce2883a0fcadc475016f61 (patch)
tree44bdd797fd2afc314fb50f05439a4a45cf6971b3
parentba839620cfdaf9233b20f00a0a05c4259a31ce3b (diff)
downloadframeworks_base-bf68c70453c19022f2ce2883a0fcadc475016f61.zip
frameworks_base-bf68c70453c19022f2ce2883a0fcadc475016f61.tar.gz
frameworks_base-bf68c70453c19022f2ce2883a0fcadc475016f61.tar.bz2
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
-rwxr-xr-xlocation/java/com/android/internal/location/GpsLocationProvider.java2
1 files changed, 1 insertions, 1 deletions
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;