From cb150223a4cc63e22cccaeeeaa196df7e9f98b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=97=D0=B0=D1=86=D0=B5=D0=BF=D0=B8=D0=BD?= Date: Mon, 28 Aug 2017 19:14:28 +0300 Subject: [android] Fixed routing statistics --- android/src/com/mapswithme/maps/routing/RoutingController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/routing/RoutingController.java b/android/src/com/mapswithme/maps/routing/RoutingController.java index af50e34f3e..11122935ce 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingController.java @@ -519,12 +519,12 @@ public class RoutingController implements TaxiManager.TaxiListener public void addStop(@NonNull MapObject mapObject) { addRoutePoint(RoutePointInfo.ROUTE_MARK_INTERMEDIATE, mapObject); + trackPointAdd(mapObject, RoutePointInfo.ROUTE_MARK_INTERMEDIATE, isPlanning(), isNavigating(), + false); build(); if (mContainer != null) mContainer.onAddedStop(); backToPlaningStateIfNavigating(); - trackPointAdd(mapObject, RoutePointInfo.ROUTE_MARK_INTERMEDIATE, isPlanning(), isNavigating(), - false); } public void removeStop(@NonNull MapObject mapObject) @@ -535,11 +535,11 @@ public class RoutingController implements TaxiManager.TaxiListener applyRemovingIntermediatePointsTransaction(); Framework.nativeRemoveRoutePoint(info.mMarkType, info.mIntermediateIndex); + trackPointRemove(mapObject, info.mMarkType, isPlanning(), isNavigating(), false); build(); if (mContainer != null) mContainer.onRemovedStop(); backToPlaningStateIfNavigating(); - trackPointRemove(mapObject, info.mMarkType, isPlanning(), isNavigating(), false); } private void backToPlaningStateIfNavigating() -- cgit v1.2.3