Fix public transport calculation from my location

This commit is contained in:
crimean 2019-01-27 18:40:30 +03:00
parent 0ada3d6ab9
commit 27dc4d4ad6

View file

@ -303,7 +303,7 @@ public class RoutingHelper {
RouteCalculationResult previousRoute, boolean targetPointsChanged) {
Location locationProjection = currentLocation;
if (isPublicTransportMode() && currentLocation != null && finalLocation != null &&
(targetPointsChanged || transportRoutingHelper.getRoutes() == null)) {
(targetPointsChanged || transportRoutingHelper.getStartLocation() == null)) {
transportRoutingHelper.setFinalAndCurrentLocation(finalLocation,
new LatLon(currentLocation.getLatitude(), currentLocation.getLongitude()));
}