GPX track moving action fix
IMHO, there is no sense in checking possible destinations list for emptiness as soon as we always hav an option to create new one just in this dialog. In any case an item that in some obscure circumstances simply does nothing looks quirky.
This commit is contained in:
parent
9688ef9fb3
commit
254b5aad14
1 changed files with 101 additions and 103 deletions
|
@ -687,7 +687,6 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
|
||||
final List<File> dirs = new ArrayList<>();
|
||||
collectDirs(app.getAppPath(IndexConstants.GPX_INDEX_DIR), dirs, info.file.getParentFile());
|
||||
if (!dirs.isEmpty()) {
|
||||
if (!info.file.getParentFile().equals(app.getAppPath(IndexConstants.GPX_INDEX_DIR))) {
|
||||
dirs.add(0, app.getAppPath(IndexConstants.GPX_INDEX_DIR));
|
||||
}
|
||||
|
@ -806,7 +805,6 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
builder.setNegativeButton(R.string.shared_string_cancel, null);
|
||||
builder.create().show();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoadGpxTask extends AsyncTask<Activity, GpxInfo, List<GpxInfo>> {
|
||||
|
||||
|
|
Loading…
Reference in a new issue