Fix buggy path
This commit is contained in:
parent
bdc984c640
commit
aa2cf3a807
1 changed files with 3 additions and 3 deletions
|
@ -76,13 +76,13 @@ public class CoreResourcesFromAndroidAssetsCustom extends ICoreResourcesProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get location of this resource
|
// Get location of this resource
|
||||||
final File res = ((OsmandApplication) _context.getApplicationContext()).getAppPath("OsmAndCore_ResourcesBundle/" + resourceInBundle + ".qz");
|
final String path = "OsmAndCore_ResourcesBundle/" + resourceInBundle + ".qz";
|
||||||
|
final File res = ((OsmandApplication) _context.getApplicationContext()).getAppPath(path);
|
||||||
final ResourceData resourceData = new ResourceData();
|
final ResourceData resourceData = new ResourceData();
|
||||||
if (!res.exists()) {
|
if (!res.exists()) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
final AssetFileDescriptor resourceFd = assetManager.openFd("OsmAndCore_ResourcesBundle/"
|
final AssetFileDescriptor resourceFd = assetManager.openFd(path);
|
||||||
+ resourceInBundle);
|
|
||||||
long declaredSize = resourceFd.getDeclaredLength();
|
long declaredSize = resourceFd.getDeclaredLength();
|
||||||
resourceData.size = resourceFd.getLength();
|
resourceData.size = resourceFd.getLength();
|
||||||
resourceData.offset = resourceFd.getStartOffset();
|
resourceData.offset = resourceFd.getStartOffset();
|
||||||
|
|
Loading…
Reference in a new issue