Skip to content

Commit

Permalink
Never include untagged nodes in the nearby POI display
Browse files Browse the repository at this point in the history
Fixes #2435
  • Loading branch information
simonpoole committed Dec 5, 2023
1 parent c9c1f07 commit 1d6b01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/blau/android/NearbyPoiUpdateListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private interface PoiFilter {
private static void filterElements(@NonNull List<OsmElement> result, @NonNull List<Node> elements, @Nullable Filter filter) {
PoiFilter poiFilter = filter == null ? WITHOUT_FILTER : WITH_FILTER;
for (OsmElement e : elements) {
if (poiFilter.accept(e, filter)) {
if (poiFilter.accept(e, filter) && e.hasTags()) {
result.add(e);
}
}
Expand Down

0 comments on commit 1d6b01a

Please sign in to comment.