[android] Fixed review notes

This commit is contained in:
Dmitry Donskoy 2019-04-23 16:07:37 +03:00 committed by Arsentiy Milchakov
parent a2cefc66d8
commit 9c00790b4d
2 changed files with 13 additions and 3 deletions

View file

@ -1917,6 +1917,15 @@ public class MwmActivity extends BaseMwmFragmentActivity
}
}
@Override
public void onStartRouteBuilding()
{
if (mRoutingPlanInplaceController == null)
return;
mRoutingPlanInplaceController.hideDrivingOptionsView();
}
@Override
public void onTaxiInfoReceived(@NonNull TaxiInfo info)
{
@ -1980,9 +1989,6 @@ public class MwmActivity extends BaseMwmFragmentActivity
@Override
public void onBuiltRoute()
{
if (mRoutingPlanInplaceController != null)
mRoutingPlanInplaceController.hideDrivingOptionsView();
if (!RoutingController.get().isPlanning())
return;

View file

@ -87,6 +87,7 @@ public class RoutingController implements TaxiManager.TaxiListener
* @param progress progress to be displayed.
* */
void updateBuildProgress(@IntRange(from = 0, to = 100) int progress, @Framework.RouterType int router);
void onStartRouteBuilding();
}
private static final int NO_WAITING_POI_PICK = -1;
@ -337,6 +338,9 @@ public class RoutingController implements TaxiManager.TaxiListener
}
setBuildState(BuildState.BUILDING);
if (mContainer != null)
mContainer.onStartRouteBuilding();
updatePlan();
Statistics.INSTANCE.trackRouteBuild(mLastRouterType, getStartPoint(), getEndPoint());