Allow threaded system initialization
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
## New since 0.12.0
|
## New since 0.12.0
|
||||||
|
|
||||||
- Render themes: symbols on lines with billboard, rotate [#743](https://github.com/mapsforge/vtm/pull/743)
|
- Render themes: symbols on lines with billboard, rotate [#743](https://github.com/mapsforge/vtm/pull/743)
|
||||||
|
- Threaded system initialization (Android)
|
||||||
|
- `Parameters.THREADED_INIT`
|
||||||
- Many other minor improvements and bug fixes
|
- Many other minor improvements and bug fixes
|
||||||
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.13.0)
|
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.13.0)
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,15 @@ public class MapView extends GLSurfaceView {
|
|||||||
public static double targetGLESVersion = 3.0;
|
public static double targetGLESVersion = 3.0;
|
||||||
|
|
||||||
private static void init() {
|
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;
|
protected AndroidMap mMap;
|
||||||
|
|||||||
@@ -67,6 +67,11 @@ public final class Parameters {
|
|||||||
*/
|
*/
|
||||||
public static boolean TEXTURE_ATLAS = false;
|
public static boolean TEXTURE_ATLAS = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Threaded system initialization.
|
||||||
|
*/
|
||||||
|
public static boolean THREADED_INIT = false;
|
||||||
|
|
||||||
private Parameters() {
|
private Parameters() {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user