Return true if gpx removed or hided
This commit is contained in:
parent
f58c95d70a
commit
0193434247
1 changed files with 2 additions and 0 deletions
|
@ -1113,6 +1113,7 @@ public class OsmandAidlApi {
|
||||||
if (selectedGpxFile != null) {
|
if (selectedGpxFile != null) {
|
||||||
app.getSelectedGpxHelper().selectGpxFile(selectedGpxFile.getGpxFile(), false, false);
|
app.getSelectedGpxHelper().selectGpxFile(selectedGpxFile.getGpxFile(), false, false);
|
||||||
refreshMap();
|
refreshMap();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -1144,6 +1145,7 @@ public class OsmandAidlApi {
|
||||||
if (item != null && item.isApiImported()) {
|
if (item != null && item.isApiImported()) {
|
||||||
Algorithms.removeAllFiles(f);
|
Algorithms.removeAllFiles(f);
|
||||||
app.getGpxDatabase().remove(f);
|
app.getGpxDatabase().remove(f);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue