refactored some code
This commit is contained in:
parent
2838bb127b
commit
dd868bda4c
1 changed files with 1 additions and 2 deletions
|
@ -578,8 +578,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi
|
|||
if (o instanceof MapMarker) {
|
||||
return ((MapMarker) o).point;
|
||||
} else if (o instanceof Amenity && amenities.contains(o)) {
|
||||
Amenity amenity = (Amenity) o;
|
||||
return amenity.getLocation();
|
||||
return ((Amenity) o).getLocation();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue