Fix ConcurrentModificationException
This commit is contained in:
parent
10ae4afd90
commit
df1bed0f4b
1 changed files with 2 additions and 1 deletions
|
@ -365,7 +365,8 @@ public class GpxSelectionHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public SelectedGpxFile getSelectedFileByPath(String path) {
|
public SelectedGpxFile getSelectedFileByPath(String path) {
|
||||||
for (SelectedGpxFile s : selectedGPXFiles) {
|
List<SelectedGpxFile> newList = new ArrayList<>(selectedGPXFiles);
|
||||||
|
for (SelectedGpxFile s : newList) {
|
||||||
if (s.getGpxFile().path.equals(path)) {
|
if (s.getGpxFile().path.equals(path)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue