Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32a8f309 authored by Christopher Lais's avatar Christopher Lais
Browse files

GPS: Fix return value of native_inject_xtra_data

Change-Id: I3f47dd89925383f1755fe3ffdb8b83a0d0db3e0c
parent d43c1492
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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