Fix bug 1838 and crash dismiss route

This commit is contained in:
Victor Shcherb 2013-05-21 01:17:24 +02:00
parent 5653e5de30
commit c6fc88c410
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ public class TargetPointsHelper {
private void updateRouteAndReferesh(boolean updateRoute) {
if(updateRoute && ( routingHelper.isRouteBeingCalculated() || routingHelper.isRouteCalculated() ||
routingHelper.isFollowingMode())) {
Location lastKnownLocation = ctx.getLastKnownLocation();
Location lastKnownLocation = routingHelper.getLastProjection();
routingHelper.setFinalAndCurrentLocation(settings.getPointToNavigate(),
settings.getIntermediatePoints(), lastKnownLocation, routingHelper.getCurrentGPXRoute());
}

View file

@ -1182,7 +1182,7 @@ public class MapActivityActions implements DialogProvider {
if (routingHelper.isRouteCalculated() || routingHelper.isFollowingMode() || routingHelper.isRouteBeingCalculated()) {
// Stop the navigation
builder.setTitle(getString(R.string.stop_routing));
builder.setTitle(getString(R.string.cancel_route));
builder.setMessage(getString(R.string.stop_routing_confirm));
builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
@Override