aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2020-01-16 10:37:11 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2020-01-20 08:15:31 +0000
commit6e48b90385570b573a8f5c9ccfc9e12e5cd81d49 (patch)
tree1e42a7cd7969a9657d8c1e6005f5770b5c128127
parent2cfef9d049640199559b20d05744db9f7abfde63 (diff)
JNI_OnLoad return JNI_VERSION_1_6 instead of JNI_VERSION_1_4
Update instance of old code using JNI_VERSION_1_4 to make the code consistent. Change-Id: I273f7224daa6a5f0bf7541e6ed61029cbdc790d5 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/androidextras/android/qjnionload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/androidextras/android/qjnionload.cpp b/src/androidextras/android/qjnionload.cpp
index 8f74744..1733428 100644
--- a/src/androidextras/android/qjnionload.cpp
+++ b/src/androidextras/android/qjnionload.cpp
@@ -89,7 +89,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* /*reserved*/)
UnionJNIEnvToVoid uenv;
uenv.venv = nullptr;
- if (vm->GetEnv(&uenv.venv, JNI_VERSION_1_4) != JNI_OK) {
+ if (vm->GetEnv(&uenv.venv, JNI_VERSION_1_6) != JNI_OK) {
__android_log_print(ANDROID_LOG_FATAL, "Qt", "GetEnv failed");
return -1;
}