mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-22 10:37:45 +01:00
Fix native map lib loading on pre 5.0 systems
This commit is contained in:
parent
87ec027696
commit
d08ca4f807
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user