Fix bug 1838 and crash dismiss route
This commit is contained in:
parent
5653e5de30
commit
c6fc88c410
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue