2021-11-24 05:32:59 +01:00
|
|
|
--- old/qtbase/src/plugins/platforms/android/androidjnimain.cpp
|
|
|
|
+++ new/qtbase/src/plugins/platforms/android/androidjnimain.cpp
|
2023-10-04 19:34:18 +02:00
|
|
|
@@ -980,6 +980,14 @@ Q_DECL_EXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void */*reserved*/)
|
2021-11-24 05:32:59 +01:00
|
|
|
__android_log_print(ANDROID_LOG_FATAL, "Qt", "registerNatives failed");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ const jint ret = QT_PREPEND_NAMESPACE(QtAndroidPrivate::initJNI(vm, env));
|
|
|
|
+ if (ret != 0)
|
|
|
|
+ {
|
|
|
|
+ __android_log_print(ANDROID_LOG_FATAL, "Qt", "initJNI failed");
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(false);
|
|
|
|
|
|
|
|
m_javaVM = vm;
|
|
|
|
|