[android] Make sure we always load mapbox-gl when a native method is loaded
Fixes #4175
This commit is contained in:
@@ -16,6 +16,14 @@ public class OfflineManager {
|
||||
|
||||
private final static String LOG_TAG = "OfflineManager";
|
||||
|
||||
//
|
||||
// Static methods
|
||||
//
|
||||
|
||||
static {
|
||||
System.loadLibrary("mapbox-gl");
|
||||
}
|
||||
|
||||
// Default database name
|
||||
private final static String DATABASE_NAME = "mbgl-offline.db";
|
||||
|
||||
|
||||
@@ -17,6 +17,14 @@ public class OfflineRegion {
|
||||
|
||||
private final static String LOG_TAG = "OfflineRegion";
|
||||
|
||||
//
|
||||
// Static methods
|
||||
//
|
||||
|
||||
static {
|
||||
System.loadLibrary("mapbox-gl");
|
||||
}
|
||||
|
||||
// Parent OfflineManager
|
||||
private OfflineManager offlineManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user