Rename method
This commit is contained in:
parent
d81c98a13b
commit
c779f4b69d
1 changed files with 2 additions and 2 deletions
|
@ -765,7 +765,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
||||||
if (amenityTransportStops.size() > 0) {
|
if (amenityTransportStops.size() > 0) {
|
||||||
selectedObjects.remove(amenity);
|
selectedObjects.remove(amenity);
|
||||||
if (amenityTransportStops.size() > 1) {
|
if (amenityTransportStops.size() > 1) {
|
||||||
sort(amenity.getLocation(), amenityTransportStops);
|
sortTransportStops(amenity.getLocation(), amenityTransportStops);
|
||||||
}
|
}
|
||||||
TransportStop amenityTransportStop = amenityTransportStops.get(0);
|
TransportStop amenityTransportStop = amenityTransportStops.get(0);
|
||||||
if (!transportStopsReplacement.contains(amenityTransportStop)) {
|
if (!transportStopsReplacement.contains(amenityTransportStop)) {
|
||||||
|
@ -785,7 +785,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sort(@NonNull LatLon latLon, List<TransportStop> transportStops) {
|
private void sortTransportStops(@NonNull LatLon latLon, List<TransportStop> transportStops) {
|
||||||
for (TransportStop transportStop : transportStops) {
|
for (TransportStop transportStop : transportStops) {
|
||||||
transportStop.distance = (int) MapUtils.getDistance(latLon, transportStop.getLocation());
|
transportStop.distance = (int) MapUtils.getDistance(latLon, transportStop.getLocation());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue