Skip to content
Browse files

frameworks-base: hardcode gps mode to non-assisted. fixes #14.

See buglabs/android#31 for further details.
  • Loading branch information...
1 parent a2218de commit 08b1d89a14f5646e5f0090e139ebfeed585f9893 @kgilmer kgilmer committed Apr 12, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 location/java/com/android/internal/location/GpsLocationProvider.java
View
7 location/java/com/android/internal/location/GpsLocationProvider.java
@@ -905,15 +905,20 @@ private void startNavigating() {
if (!mStarted) {
if (DEBUG) Log.d(TAG, "startNavigating");
mStarted = true;
+ /*
+ * See https://github.com/buglabs/android/issues/31
+ *
int positionMode;
if (Settings.Secure.getInt(mContext.getContentResolver(),
Settings.Secure.ASSISTED_GPS_ENABLED, 1) != 0) {
positionMode = GPS_POSITION_MODE_MS_BASED;
} else {
positionMode = GPS_POSITION_MODE_STANDALONE;
}
+ */
- if (!native_start(positionMode, false, 1)) {
+ //if (!native_start(positionMode, false, 1)) {
+ if (!native_start(GPS_POSITION_MODE_STANDALONE, false, 1)) {
mStarted = false;
Log.e(TAG, "native_start failed in startNavigating()");
return;

0 comments on commit 08b1d89

Please sign in to comment.
Something went wrong with that request. Please try again.