[android] - fix jni method lookup of GeometryCollection accessor geometries, add regression test

This commit is contained in:
tobrun
2018-07-09 11:31:16 +02:00
committed by Tobrun
parent 8b2135b249
commit bf7792eae0
2 changed files with 50 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ jni::Object<GeometryCollection> GeometryCollection::New(jni::JNIEnv& env, const
mapbox::geometry::geometry_collection<double> GeometryCollection::convert(jni::JNIEnv &env, jni::Object<GeometryCollection> jCollection) {
// Get geometries
static auto getGeometries = javaClass.GetMethod<jni::Object<java::util::List> ()>(env, "getGeometries");
static auto getGeometries = javaClass.GetMethod<jni::Object<java::util::List> ()>(env, "geometries");
auto jList = jCollection.Call(env, getGeometries);
// Turn into array