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:
parent
845bf51f91
commit
5567a81c0e
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue