Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-07-08 18:38:51 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:58:29 +0300
commit75d58d02582b8058fce2d9b411a33467a9a3967f (patch)
treeadb5a0ea042792ac3f69e99ad4090eaf2c6c113a /android/src/com/mapswithme/maps
parentd2d7828685ff9e9b8c2988c9efc69ed7b6af9923 (diff)
[android] Use alternative zip files for *.ttf and World, WorldCoasts.
Diffstat (limited to 'android/src/com/mapswithme/maps')
-rw-r--r--android/src/com/mapswithme/maps/MWMApplication.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/android/src/com/mapswithme/maps/MWMApplication.java b/android/src/com/mapswithme/maps/MWMApplication.java
index 89a2a1e95a..a2dd3f86af 100644
--- a/android/src/com/mapswithme/maps/MWMApplication.java
+++ b/android/src/com/mapswithme/maps/MWMApplication.java
@@ -126,10 +126,8 @@ public class MWMApplication extends android.app.Application implements MapStorag
new File(extTmpPath).mkdirs();
// init native framework
- nativeInit(getApkPath(),
- extStoragePath,
- extTmpPath,
- m_isProVersion);
+ nativeInit(getApkPath(), extStoragePath, extTmpPath,
+ getOBBGooglePath(), m_isProVersion);
m_slotID = getMapStorage().subscribe(this);
@@ -203,6 +201,12 @@ public class MWMApplication extends android.app.Application implements MapStorag
return storagePath.concat(String.format("/Android/data/%s/%s/", getPackageName(), folder));
}
+ private String getOBBGooglePath()
+ {
+ final String storagePath = Environment.getExternalStorageDirectory().getAbsolutePath();
+ return storagePath.concat(String.format("/Android/obb/%s/", getPackageName()));
+ }
+
/// Check if we have free space on storage (writable path).
public native boolean hasFreeSpace(long size);
@@ -241,9 +245,8 @@ public class MWMApplication extends android.app.Application implements MapStorag
System.loadLibrary("mapswithme");
}
- private native void nativeInit(String apkPath,
- String storagePath,
- String tmpPath,
+ private native void nativeInit(String apkPath, String storagePath,
+ String tmpPath, String obbGooglePath,
boolean isPro);
public native boolean nativeIsBenchmarking();