We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ed3a2 commit 69d100dCopy full SHA for 69d100d
1 file changed
main/src/main/java/cgeo/geocaching/storage/DataStore.java
@@ -2947,7 +2947,9 @@ public static List<String> getFullListHierarchy() {
2947
for (String list : cursorToColl(c, new ArrayList<>(), GET_STRING_0)) {
2948
final int prefix = list.lastIndexOf(GROUP_SEPARATOR);
2949
if (prefix >= 0) {
2950
- result.add(list.substring(0, prefix + 1));
+ if (!result.contains(list.substring(0, prefix + 1))) {
2951
+ result.add(list.substring(0, prefix + 1));
2952
+ }
2953
} else if (!result.contains(list + GROUP_SEPARATOR)) {
2954
result.add(list);
2955
}
0 commit comments