summaryrefslogtreecommitdiffstats
path: root/src/webview/qwebview_android.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/qwebview_android.cpp')
-rw-r--r--src/webview/qwebview_android.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webview/qwebview_android.cpp b/src/webview/qwebview_android.cpp
index 54f6a3d..1783deb 100644
--- a/src/webview/qwebview_android.cpp
+++ b/src/webview/qwebview_android.cpp
@@ -401,6 +401,11 @@ static void c_onReceivedError(JNIEnv *env,
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/)
{
+ static bool initialized = false;
+ if (initialized)
+ return JNI_VERSION_1_6;
+ initialized = true;
+
typedef union {
JNIEnv *nativeEnvironment;
void *venv;