BUGFIX-1000. Added .nomedia file into osmand's directory notifying that

this directory contains no media files.
This commit is contained in:
AFedasenka 2012-05-25 23:05:37 +02:00
parent a9d20568c1
commit cef7f40a97

View file

@ -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();