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:
Diffstat (limited to 'android/src/com/mapswithme/maps/MWMApplication.java')
-rw-r--r--android/src/com/mapswithme/maps/MWMApplication.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/android/src/com/mapswithme/maps/MWMApplication.java b/android/src/com/mapswithme/maps/MWMApplication.java
index 3d8ba3e651..814af84042 100644
--- a/android/src/com/mapswithme/maps/MWMApplication.java
+++ b/android/src/com/mapswithme/maps/MWMApplication.java
@@ -10,8 +10,6 @@ import com.mapswithme.maps.location.LocationService;
public class MWMApplication extends android.app.Application
{
- public final static String PACKAGE_NAME = "com.mapswithme.maps";
-
private LocationService mLocationService = null;
@Override
@@ -44,7 +42,7 @@ public class MWMApplication extends android.app.Application
{
try
{
- return getPackageManager().getApplicationInfo(PACKAGE_NAME, 0).sourceDir;
+ return getPackageManager().getApplicationInfo(getPackageName(), 0).sourceDir;
}
catch (NameNotFoundException e)
{
@@ -61,7 +59,7 @@ public class MWMApplication extends android.app.Application
public String getExtAppDirectoryPath(String folder)
{
final String storagePath = Environment.getExternalStorageDirectory().getAbsolutePath();
- return storagePath.concat(String.format("/Android/data/%s/%s/", PACKAGE_NAME, folder));
+ return storagePath.concat(String.format("/Android/data/%s/%s/", getPackageName(), folder));
}
public boolean isProVersion()
@@ -79,12 +77,6 @@ public class MWMApplication extends android.app.Application
return getFilesDir().getAbsolutePath() + "/";
}
- @Override
- public String getPackageName()
- {
- return PACKAGE_NAME;
- }
-
static
{
System.loadLibrary("mapswithme");