mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-22 18:47:46 +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());
|
Log.d(TAG, "Loading vtm-jni from " + cacheFile.getPath());
|
||||||
System.load(cacheFile.getAbsolutePath());
|
System.load(cacheFile.getAbsolutePath());
|
||||||
} else {
|
|
||||||
Log.d(TAG, "Loading native vtm-jni");
|
|
||||||
System.loadLibrary("vtm-jni");
|
|
||||||
}
|
|
||||||
nativeLibLoaded = true;
|
nativeLibLoaded = true;
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.w(TAG, e);
|
Log.w(TAG, e);
|
||||||
}
|
}
|
||||||
|
if (!nativeLibLoaded) {
|
||||||
|
Log.d(TAG, "Loading native vtm-jni");
|
||||||
|
System.loadLibrary("vtm-jni");
|
||||||
|
nativeLibLoaded = true;
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user