Fix native map lib loading on pre 5.0 systems

This commit is contained in:
Marvin W 2016-03-03 01:35:01 +01:00
parent 87ec027696
commit d08ca4f807
1 changed files with 6 additions and 4 deletions

View File

@ -83,14 +83,16 @@ public class BackendMapView extends MapView {
}
Log.d(TAG, "Loading vtm-jni from " + cacheFile.getPath());
System.load(cacheFile.getAbsolutePath());
} else {
Log.d(TAG, "Loading native vtm-jni");
System.loadLibrary("vtm-jni");
nativeLibLoaded = true;
}
nativeLibLoaded = true;
} catch (Exception e) {
Log.w(TAG, e);
}
if (!nativeLibLoaded) {
Log.d(TAG, "Loading native vtm-jni");
System.loadLibrary("vtm-jni");
nativeLibLoaded = true;
}
return context;
}