aboutsummaryrefslogtreecommitdiff
path: root/depends/patches/qt/fix_android_jni_static.patch
blob: f891da6ddf9f7dd11c56d98fb7f2285fbc62d834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- old/qtbase/src/plugins/platforms/android/androidjnimain.cpp
+++ new/qtbase/src/plugins/platforms/android/androidjnimain.cpp
@@ -897,6 +897,14 @@
         __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;