BUGFIX-1000. Added .nomedia file into osmand's directory notifying that
this directory contains no media files.
This commit is contained in:
parent
a9d20568c1
commit
cef7f40a97
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue