[android] Fixed removing the start or finish point

This commit is contained in:
Александр Зацепин 2017-06-16 17:27:15 +03:00
parent 3aaac8c5a9
commit 05f4a2d228

View file

@ -179,6 +179,13 @@ public class RoutingController
return;
}
if (mLastResultCode == ResultCodesHelper.CANCELLED)
{
setBuildState(BuildState.NONE);
updatePlan();
return;
}
if (!ResultCodesHelper.isMoreMapsNeeded(mLastResultCode))
{
setBuildState(BuildState.ERROR);
@ -277,13 +284,6 @@ public class RoutingController
{
Framework.nativeRemoveRoute();
RouteMarkData[] routePoints = Framework.nativeGetRoutePoints();
if (routePoints.length < 2)
{
setBuildState(BuildState.NONE);
return;
}
mLogger.d(TAG, "build");
mUberRequestHandled = false;
mLastBuildProgress = 0;