Fix #6480
This commit is contained in:
parent
4cea208b95
commit
2789ab5244
2 changed files with 4 additions and 2 deletions
|
@ -3932,4 +3932,6 @@
|
||||||
<string name="poi_rtsa_scale_3b">3Б</string>
|
<string name="poi_rtsa_scale_3b">3Б</string>
|
||||||
<string name="poi_rtsa_scale_3b_asterisk">3Б*</string>
|
<string name="poi_rtsa_scale_3b_asterisk">3Б*</string>
|
||||||
|
|
||||||
|
<string name="poi_change_delete">Deleted object</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -586,7 +586,7 @@ public abstract class OsmandMapLayer {
|
||||||
Amenity res = null;
|
Amenity res = null;
|
||||||
for (Amenity amenity : amenities) {
|
for (Amenity amenity : amenities) {
|
||||||
Long amenityId = amenity.getId() >> 1;
|
Long amenityId = amenity.getId() >> 1;
|
||||||
if (amenityId == id) {
|
if (amenityId == id && !amenity.isClosed()) {
|
||||||
res = amenity;
|
res = amenity;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -594,7 +594,7 @@ public abstract class OsmandMapLayer {
|
||||||
if (res == null && names != null && names.size() > 0) {
|
if (res == null && names != null && names.size() > 0) {
|
||||||
for (Amenity amenity : amenities) {
|
for (Amenity amenity : amenities) {
|
||||||
for (String name : names) {
|
for (String name : names) {
|
||||||
if (name.equals(amenity.getName())) {
|
if (name.equals(amenity.getName()) && !amenity.isClosed()) {
|
||||||
res = amenity;
|
res = amenity;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue