diff options
author | Mike Lockwood <lockwood@android.com> | 2010-08-06 10:06:26 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-08-30 19:38:45 -0400 |
commit | 3e34d135f7fca756d00ebdc50c55b4f12ef7a328 (patch) | |
tree | 5246dd3416d22ab0e91f7f672b280514c1361c7c /location/java | |
parent | 12dbee827353ecdb690d27c3f52e26afc71e0774 (diff) | |
download | frameworks_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-x | location/java/com/android/internal/location/GpsLocationProvider.java | 4 |
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; |