From d77ba13f8a8aff21ac02f0c8bb659548864f618a Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 19 Jun 2018 17:46:48 +0300 Subject: [PATCH] add IndexConstants.MAP_MARKERS_INDEX_DIR --- OsmAnd-java/src/main/java/net/osmand/IndexConstants.java | 1 + OsmAnd/src/net/osmand/plus/MapMarkersHelper.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/IndexConstants.java b/OsmAnd-java/src/main/java/net/osmand/IndexConstants.java index a829bbc47f..a4f69ecbc7 100644 --- a/OsmAnd-java/src/main/java/net/osmand/IndexConstants.java +++ b/OsmAnd-java/src/main/java/net/osmand/IndexConstants.java @@ -50,6 +50,7 @@ public class IndexConstants { public static final String MAPS_PATH = ""; public static final String BACKUP_INDEX_DIR= "backup/"; public static final String GPX_INDEX_DIR = "tracks/"; + public static final String MAP_MARKERS_INDEX_DIR = "/map markers"; public static final String GPX_RECORDED_INDEX_DIR = GPX_INDEX_DIR + "rec/"; public static final String GPX_IMPORT_DIR = GPX_INDEX_DIR + "import/"; diff --git a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java index f76351fecd..35a7dfb32c 100644 --- a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java +++ b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java @@ -995,7 +995,7 @@ public class MapMarkersHelper { } public String generateGpx(String fileName) { - final File dir = ctx.getAppPath(IndexConstants.GPX_INDEX_DIR + "/map markers"); + final File dir = ctx.getAppPath(IndexConstants.GPX_INDEX_DIR + IndexConstants.MAP_MARKERS_INDEX_DIR); if (!dir.exists()) { dir.mkdirs(); } @@ -1018,7 +1018,7 @@ public class MapMarkersHelper { } public String generateGpxFromList(String fileName, List mapMarkers) { - final File dir = ctx.getAppPath(IndexConstants.GPX_INDEX_DIR + "/map markers"); + final File dir = ctx.getAppPath(IndexConstants.GPX_INDEX_DIR + IndexConstants.MAP_MARKERS_INDEX_DIR); if (!dir.exists()) { dir.mkdirs(); }