summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-07-17 10:56:56 -0400
committerMike Lockwood <lockwood@android.com>2009-07-17 10:56:56 -0400
commit2bb99d1e2f0296dd8b09a451575f70f49da30a1b (patch)
tree6d7fd5e0bfe66b19aa378f2cbe3ae71029ade2fa /location/java
parent2e661a7c03be9c596423b18243c8a4ee3a67b8fe (diff)
downloadframeworks_base-2bb99d1e2f0296dd8b09a451575f70f49da30a1b.zip
frameworks_base-2bb99d1e2f0296dd8b09a451575f70f49da30a1b.tar.gz
frameworks_base-2bb99d1e2f0296dd8b09a451575f70f49da30a1b.tar.bz2
GpsLocationProvider: remove mAgpsConfigured configured flag.
This flag was unnecessary because the lower level GPS code already checks for this and this was causing problems for a GPS implementation that does not use /etc/gps.conf Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location/java')
-rwxr-xr-xlocation/java/com/android/internal/location/GpsLocationProvider.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java
index 3f0c234..9e1a72c 100755
--- a/location/java/com/android/internal/location/GpsLocationProvider.java
+++ b/location/java/com/android/internal/location/GpsLocationProvider.java
@@ -184,8 +184,6 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
// number of fixes we have received since we started navigating
private int mFixCount;
- private boolean mAgpsConfigured;
-
// true if we started navigation
private boolean mStarted;
@@ -356,7 +354,6 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
try {
int port = Integer.parseInt(portString);
native_set_agps_server(AGPS_TYPE_SUPL, host, port);
- mAgpsConfigured = true;
} catch (NumberFormatException e) {
Log.e(TAG, "unable to parse SUPL_PORT: " + portString);
}
@@ -368,7 +365,6 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
try {
int port = Integer.parseInt(portString);
native_set_agps_server(AGPS_TYPE_C2K, host, port);
- mAgpsConfigured = true;
} catch (NumberFormatException e) {
Log.e(TAG, "unable to parse C2K_PORT: " + portString);
}
@@ -722,7 +718,7 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
if (DEBUG) Log.d(TAG, "startNavigating");
mStarted = true;
int positionMode;
- if (mAgpsConfigured && Settings.Secure.getInt(mContext.getContentResolver(),
+ if (Settings.Secure.getInt(mContext.getContentResolver(),
Settings.Secure.ASSISTED_GPS_ENABLED, 0) != 0) {
positionMode = GPS_POSITION_MODE_MS_BASED;
} else {