Rename method

This commit is contained in:
Alexey Kulish 2018-05-23 10:31:48 +03:00
parent d81c98a13b
commit c779f4b69d

View file

@ -765,7 +765,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
if (amenityTransportStops.size() > 0) {
selectedObjects.remove(amenity);
if (amenityTransportStops.size() > 1) {
sort(amenity.getLocation(), amenityTransportStops);
sortTransportStops(amenity.getLocation(), amenityTransportStops);
}
TransportStop amenityTransportStop = amenityTransportStops.get(0);
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) {
transportStop.distance = (int) MapUtils.getDistance(latLon, transportStop.getLocation());
}