Fixed deleted POI search

This commit is contained in:
PaulStets 2017-09-16 13:21:36 +03:00
parent 0aa2d1a61a
commit 07bd4e7121

View file

@ -102,6 +102,10 @@ public class QuickSearchListItem {
case LOCATION:
LatLon latLon = searchResult.location;
return PointDescription.getLocationNamePlain(app, latLon.getLatitude(), latLon.getLongitude());
case POI:
if (((Amenity)searchResult.object).isClosed()) {
return searchResult.localeName + " (Closed)";
}
}
return searchResult.localeName;
}