Fix original 1946 - allow to create data structure of folder GPX just with rename (maybe text could be more descriptive about feature - like in Github.com)?

This commit is contained in:
Victor Shcherb 2013-07-18 22:11:42 +02:00
parent 845bf51f91
commit 5567a81c0e

View file

@ -228,6 +228,9 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
if (dest.exists()) {
AccessibleToast.makeText(LocalIndexesActivity.this, R.string.file_with_name_already_exists, Toast.LENGTH_LONG).show();
} else {
if(!f.getParentFile().exists()) {
f.getParentFile().mkdirs();
}
if(f.renameTo(dest)){
reloadIndexes();
} else {