summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-08-06 10:06:26 -0400
committerMike Lockwood <lockwood@android.com>2010-08-30 19:38:45 -0400
commit3e34d135f7fca756d00ebdc50c55b4f12ef7a328 (patch)
tree5246dd3416d22ab0e91f7f672b280514c1361c7c /location/java
parent12dbee827353ecdb690d27c3f52e26afc71e0774 (diff)
downloadframeworks_base-3e34d135f7fca756d00ebdc50c55b4f12ef7a328.zip
frameworks_base-3e34d135f7fca756d00ebdc50c55b4f12ef7a328.tar.gz
frameworks_base-3e34d135f7fca756d00ebdc50c55b4f12ef7a328.tar.bz2
GPS: Don't set XTRA download pending flag at boot time.
XTRA data downloads are now strictly on demand from the GPS engine. Also fix typo in handleDownloadXtraData() Change-Id: Ied1a6e2e62134add4d965326aae909c86f834682 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location/java')
-rwxr-xr-xlocation/java/com/android/internal/location/GpsLocationProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java
index fa53ccf..c3dddad 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 = true;
+ private boolean mDownloadXtraDataPending = false;
// true if GPS is navigating
private boolean mNavigating;
@@ -522,7 +522,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
}
private void handleDownloadXtraData() {
- if (!mDownloadXtraDataPending) {
+ if (!mNetworkAvailable) {
// try again when network is up
mDownloadXtraDataPending = true;
return;