Create track folder if it is missing

This commit is contained in:
Victor Shcherb 2015-09-21 12:34:09 +02:00
parent df4c8e8374
commit 9cbe950d87

View file

@ -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$