diff options
author | Christopher Lais <chris+android@zenthought.org> | 2010-12-01 21:05:06 -0600 |
---|---|---|
committer | Christopher Lais <chris+android@zenthought.org> | 2010-12-01 21:05:06 -0600 |
commit | 32a8f309fc2fc0e6da5b110817d977d4271e853b (patch) | |
tree | c76d0ed9a25e793ddd61d863b10b42cfc20b799b /core | |
parent | d43c1492034724e6a5e11f7af628d2b46fc28f61 (diff) | |
download | frameworks_base-32a8f309fc2fc0e6da5b110817d977d4271e853b.zip frameworks_base-32a8f309fc2fc0e6da5b110817d977d4271e853b.tar.gz frameworks_base-32a8f309fc2fc0e6da5b110817d977d4271e853b.tar.bz2 |
GPS: Fix return value of native_inject_xtra_data
Change-Id: I3f47dd89925383f1755fe3ffdb8b83a0d0db3e0c
Diffstat (limited to 'core')
-rwxr-xr-x | core/jni/android_location_GpsLocationProvider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_location_GpsLocationProvider.cpp b/core/jni/android_location_GpsLocationProvider.cpp index 52a4171..55493d5 100755 --- a/core/jni/android_location_GpsLocationProvider.cpp +++ b/core/jni/android_location_GpsLocationProvider.cpp @@ -440,7 +440,7 @@ static jboolean android_location_GpsLocationProvider_inject_xtra_data(JNIEnv* en ret = sGpsXtraInterface->inject_xtra_data((char *)bytes, length); } env->ReleaseByteArrayElements(data, bytes, 0); - return (ret != 0); + return (ret == 0); } #else static jboolean android_location_GpsLocationProvider_inject_xtra_data(JNIEnv* env, jobject obj, @@ -450,7 +450,7 @@ static jboolean android_location_GpsLocationProvider_inject_xtra_data(JNIEnv* en jbyte* bytes = env->GetByteArrayElements(data, 0); ret = sGpsXtraInterface->inject_xtra_data((char *)bytes, length); env->ReleaseByteArrayElements(data, bytes, 0); - return (ret != 0); + return (ret == 0); } #endif |