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:
Igor B. Poretsky 2017-05-24 00:31:06 +03:00
parent 9688ef9fb3
commit 254b5aad14

View file

@ -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>> {