Android: 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: I779696738caa3b844f4adf33104b4328dba748a5 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
parent
08d4caadd7
commit
236a47ff7a
@ -900,7 +900,7 @@ Q_DECL_EXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void */*reserved*/)
|
||||
uenv.venv = nullptr;
|
||||
m_javaVM = 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;
|
||||
}
|
||||
@ -922,5 +922,5 @@ Q_DECL_EXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void */*reserved*/)
|
||||
if (threadSetter.thread())
|
||||
threadSetter.thread()->setObjectName("QtMainLoopThread");
|
||||
__android_log_print(ANDROID_LOG_INFO, "Qt", "qt started");
|
||||
return JNI_VERSION_1_4;
|
||||
return JNI_VERSION_1_6;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user