From 9cbe950d87b627539f6a2150913e4983f623633c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 21 Sep 2015 12:34:09 +0200 Subject: [PATCH] Create track folder if it is missing --- OsmAnd/src/net/osmand/plus/resources/ResourceManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index fc65eeee8d..6a96641565 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -165,6 +165,7 @@ public class ResourceManager { public void resetStoreDirectory() { dirWithTiles = context.getAppPath(IndexConstants.TILES_INDEX_DIR); dirWithTiles.mkdirs(); + context.getAppPath(IndexConstants.GPX_INDEX_DIR).mkdirs(); // ".nomedia" indicates there are no pictures and no music to list in this dir for the Gallery app try { context.getAppPath(".nomedia").createNewFile(); //$NON-NLS-1$