We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d92a27a commit 0cee578Copy full SHA for 0cee578
Sources/JNI/SwiftJNI.swift
@@ -12,6 +12,7 @@ public func JNI_OnLoad(jvm: UnsafeMutablePointer<JavaVM>, reserved: UnsafeMutabl
12
jni = localJNI // set the global for use elsewhere
13
14
#if os(Android)
15
+ DispatchQueue.drainingMainQueue = true
16
DispatchQueue.setThreadDetachCallback(JNI_DetachCurrentThread)
17
#endif
18
0 commit comments