diff options
author | David 'Digit' Turner <digit@google.com> | 2009-05-20 14:23:46 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-05-20 14:23:46 +0200 |
commit | 9a940e8b3d61539392c1a9f925be13cca8b5103d (patch) | |
tree | 590d427e570ff9983d138de0301a53575ba07e3f /core/jni | |
parent | 9fb724ba90364b86265dea6b281d182d26124606 (diff) | |
download | frameworks_base-9a940e8b3d61539392c1a9f925be13cca8b5103d.zip frameworks_base-9a940e8b3d61539392c1a9f925be13cca8b5103d.tar.gz frameworks_base-9a940e8b3d61539392c1a9f925be13cca8b5103d.tar.bz2 |
Fix bad filtering of error code when set_position_mode() is being called.
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_location_GpsLocationProvider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_location_GpsLocationProvider.cpp b/core/jni/android_location_GpsLocationProvider.cpp index 004b0e3..0858741 100644 --- a/core/jni/android_location_GpsLocationProvider.cpp +++ b/core/jni/android_location_GpsLocationProvider.cpp @@ -176,7 +176,7 @@ static jboolean android_location_GpsLocationProvider_start(JNIEnv* env, jobject { int result = sGpsInterface->set_position_mode(positionMode, (singleFix ? 0 : fixFrequency)); if (result) { - return result; + return false; } return (sGpsInterface->start() == 0); |