diff --git a/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java b/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java index 0854b3149e..dac66fae34 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java @@ -197,7 +197,8 @@ final class RoutingBottomMenuController implements View.OnClickListener TextView totalTimeView = (TextView) mTransitFrame.findViewById(R.id.total_time); totalTimeView.setText(RoutingController.formatRoutingTime(mContext, (int) info.getTotalTime(), R.dimen.text_size_routing_number)); - // TODO: set pedestrian total distance. + TextView distanceView = (TextView) mTransitFrame.findViewById(R.id.total_distance); + distanceView.setText(info.getTotalPedestrianDistance() + " " + info.getTotalDistanceUnits()); } void showAddStartFrame() diff --git a/android/src/com/mapswithme/maps/routing/TransitRouteInfo.java b/android/src/com/mapswithme/maps/routing/TransitRouteInfo.java index 50f093d358..586a67653f 100644 --- a/android/src/com/mapswithme/maps/routing/TransitRouteInfo.java +++ b/android/src/com/mapswithme/maps/routing/TransitRouteInfo.java @@ -37,6 +37,18 @@ public class TransitRouteInfo mSteps = steps; } + @NonNull + String getTotalPedestrianDistance() + { + return mTotalPedestrianDistance; + } + + @NonNull + String getTotalDistanceUnits() + { + return mTotalDistanceUnits; + } + int getTotalTime() { return mTotalTimeInSec; @@ -47,4 +59,4 @@ public class TransitRouteInfo { return new ArrayList<>(Arrays.asList(mSteps)); } -} \ No newline at end of file +}