diff options
author | Nicholas Hallahan <nick@theoutpost.io> | 2015-07-16 07:55:10 -0700 |
---|---|---|
committer | Nicholas Hallahan <nick@theoutpost.io> | 2015-07-16 07:55:10 -0700 |
commit | 7954c7d1abbb591c3ebd36a70987b4c879477173 (patch) | |
tree | 542ca631c3aa8c260ab7d2d28c739697b2e5d0ba | |
parent | 61cfcdb33b75a9e3d0581edf1bd3adee82b78adf (diff) | |
download | qtlocation-mapboxgl-7954c7d1abbb591c3ebd36a70987b4c879477173.tar.gz |
iterating through list of lat legs #1716
-rw-r--r-- | android/cpp/jni.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/cpp/jni.cpp b/android/cpp/jni.cpp index 0b5344178b..81cf6160b9 100644 --- a/android/cpp/jni.cpp +++ b/android/cpp/jni.cpp @@ -524,6 +524,16 @@ jlong JNICALL nativeAddPolyline(JNIEnv *env, jobject obj, jlong nativeMapViewPtr return -1; } + for (jsize i = 0; i < len; i++) { + jobject jobj = reinterpret_cast<jobject>(env->GetObjectArrayElement(array, i)); + if (jobj == nullptr) { + env->ExceptionDescribe(); + return -1; + } + + // vector.push_back(std_string_from_jstring(env, jstr)); + } + return (jlong)width; } |