diff --git a/OsmAnd/src/net/osmand/plus/ResourceManager.java b/OsmAnd/src/net/osmand/plus/ResourceManager.java index 3c1b329f45..53ef02e993 100644 --- a/OsmAnd/src/net/osmand/plus/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/ResourceManager.java @@ -121,6 +121,13 @@ public class ResourceManager { tileDownloader = MapTileDownloader.getInstance(Version.getFullVersion(context)); + // ".nomedia" indicates there are no pictures and no music to list in this dir for the Gallery app + try { + context.getSettings() + .extendOsmandPath(APP_DIR + ".nomedia").createNewFile(); //$NON-NLS-1$ + } catch (Exception e) { + } + resetStoreDirectory(); WindowManager mgr = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE); DisplayMetrics dm = new DisplayMetrics();