This commit is contained in:
madwasp79 2019-02-25 09:24:40 +02:00
parent 4097cb587d
commit 9709b1609e
2 changed files with 2 additions and 18 deletions

View file

@ -61,7 +61,9 @@ public class GpxSelectionHelper {
if (!selectedGpxFilesBackUp.isEmpty()) {
selectedGPXFiles.clear();
selectedGPXFiles.addAll(selectedGpxFilesBackUp);
saveCurrentSelections();
}
}
public boolean isSelectedGpxFilesBackUp() {

View file

@ -39,24 +39,6 @@ public class ShowHideGpxTracksAction extends QuickAction {
selectedGpxHelper.clearAllGpxFileToShow();
} else {
selectedGpxHelper.restoreSelectedGpxFiles();
final File dir = activity.getMyApplication().getAppPath(IndexConstants.GPX_INDEX_DIR);
CallbackWithObject<GPXFile[]> callbackWithObject = new CallbackWithObject<GPXFile[]>() {
@Override
public boolean processResult(GPXFile[] result) {
return true;
}
};
selectedGpxHelper.restoreSelectedGpxFiles();
List<GpxSelectionHelper.SelectedGpxFile> selectedGpxFiles = selectedGpxHelper
.getSelectedGPXFiles();
List<String> files = new ArrayList<>();
for (GpxSelectionHelper.SelectedGpxFile file : selectedGpxFiles) {
files.add(file.getGpxFile().path.substring(file.getGpxFile().path.lastIndexOf("/")));
}
GpxUiHelper.loadFileInDifferentThread(activity, callbackWithObject, dir,
files.toArray(new String[files.size()]));
}
}