Allow threaded system initialization

This commit is contained in:
Emux
2019-09-28 22:35:28 +03:00
parent 7ad3f4a0b1
commit 0c1c06c1bb
3 changed files with 16 additions and 1 deletions

View File

@@ -70,7 +70,15 @@ public class MapView extends GLSurfaceView {
public static double targetGLESVersion = 3.0;
private static void init() {
System.loadLibrary("vtm-jni");
if (Parameters.THREADED_INIT)
new Thread(new Runnable() {
@Override
public void run() {
System.loadLibrary("vtm-jni");
}
}).start();
else
System.loadLibrary("vtm-jni");
}
protected AndroidMap mMap;