diff options
author | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-09-06 17:58:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 17:58:28 +0200 |
commit | e1a2ee733cde7061acc4bf0b7e3ce0663261a976 (patch) | |
tree | e199697e73bc2ef374749d579439a3ed0bff73ea /platform/android | |
parent | 4eb54270d773bf60f948176c3ff7827d7f818a92 (diff) | |
download | qtlocation-mapboxgl-e1a2ee733cde7061acc4bf0b7e3ce0663261a976.tar.gz |
[android] jni - fix boolean to JsonPrimitive conversion (#6256)
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/src/geometry/conversion/feature.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/geometry/conversion/feature.hpp b/platform/android/src/geometry/conversion/feature.hpp index 857b76da50..9f75b9c8f1 100644 --- a/platform/android/src/geometry/conversion/feature.hpp +++ b/platform/android/src/geometry/conversion/feature.hpp @@ -62,7 +62,7 @@ public: */ jni::jobject* operator()(const bool& value) const { static jni::jclass* javaClass = jni::NewGlobalRef(env, &jni::FindClass(env, "com/google/gson/JsonPrimitive")).release(); - static jni::jmethodID* constructor = &jni::GetMethodID(env, *javaClass, "<init>", "(Z)V"); + static jni::jmethodID* constructor = &jni::GetMethodID(env, *javaClass, "<init>", "(Ljava/lang/Boolean;)V"); //Create JsonPrimitive jni::LocalObject<jni::jobject> converted = jni::NewLocalObject(env, *convert<jni::jobject*, bool>(env, value)); |