commit
130ff5ed85
4 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ public class GpxSelectionHelper {
|
||||||
savingTrackHelper = trackHelper;
|
savingTrackHelper = trackHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearAllGpxFileToShow(boolean backupSelection) {
|
public void clearAllGpxFilesToShow(boolean backupSelection) {
|
||||||
selectedGpxFilesBackUp.clear();
|
selectedGpxFilesBackUp.clear();
|
||||||
if (backupSelection) {
|
if (backupSelection) {
|
||||||
for(SelectedGpxFile s : selectedGPXFiles) {
|
for(SelectedGpxFile s : selectedGPXFiles) {
|
||||||
|
|
|
@ -219,7 +219,7 @@ public class ConfigureMapMenu {
|
||||||
} else if (itemId == R.string.layer_gpx_layer) {
|
} else if (itemId == R.string.layer_gpx_layer) {
|
||||||
final GpxSelectionHelper selectedGpxHelper = ma.getMyApplication().getSelectedGpxHelper();
|
final GpxSelectionHelper selectedGpxHelper = ma.getMyApplication().getSelectedGpxHelper();
|
||||||
if (selectedGpxHelper.isShowingAnyGpxFiles()) {
|
if (selectedGpxHelper.isShowingAnyGpxFiles()) {
|
||||||
selectedGpxHelper.clearAllGpxFileToShow(true);
|
selectedGpxHelper.clearAllGpxFilesToShow(true);
|
||||||
adapter.getItem(pos).setDescription(selectedGpxHelper.getGpxDescription());
|
adapter.getItem(pos).setDescription(selectedGpxHelper.getGpxDescription());
|
||||||
} else {
|
} else {
|
||||||
showGpxSelectionDialog(adapter, adapter.getItem(pos));
|
showGpxSelectionDialog(adapter, adapter.getItem(pos));
|
||||||
|
|
|
@ -613,7 +613,7 @@ public class GpxUiHelper {
|
||||||
//clear all previously selected files before adding new one
|
//clear all previously selected files before adding new one
|
||||||
OsmandApplication app = (OsmandApplication) activity.getApplication();
|
OsmandApplication app = (OsmandApplication) activity.getApplication();
|
||||||
if (app != null && app.getSelectedGpxHelper() != null) {
|
if (app != null && app.getSelectedGpxHelper() != null) {
|
||||||
app.getSelectedGpxHelper().clearAllGpxFileToShow(false);
|
app.getSelectedGpxHelper().clearAllGpxFilesToShow(false);
|
||||||
}
|
}
|
||||||
if (app != null && showCurrentGpx && adapter.getItem(0).getSelected()) {
|
if (app != null && showCurrentGpx && adapter.getItem(0).getSelected()) {
|
||||||
currentGPX = app.getSavingTrackHelper().getCurrentGpx();
|
currentGPX = app.getSavingTrackHelper().getCurrentGpx();
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class ShowHideGpxTracksAction extends QuickAction {
|
||||||
final GpxSelectionHelper selectedGpxHelper = activity.getMyApplication()
|
final GpxSelectionHelper selectedGpxHelper = activity.getMyApplication()
|
||||||
.getSelectedGpxHelper();
|
.getSelectedGpxHelper();
|
||||||
if (selectedGpxHelper.isShowingAnyGpxFiles()) {
|
if (selectedGpxHelper.isShowingAnyGpxFiles()) {
|
||||||
selectedGpxHelper.clearAllGpxFileToShow(true);
|
selectedGpxHelper.clearAllGpxFilesToShow(true);
|
||||||
} else {
|
} else {
|
||||||
selectedGpxHelper.restoreSelectedGpxFiles();
|
selectedGpxHelper.restoreSelectedGpxFiles();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue