From a28055c43a0205d20d949e2380ca0812fbb5fa00 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 5 Jan 2015 13:57:22 +0100 Subject: [PATCH] Try using NEW keyword to fix bug --- .../src/net/osmand/plus/views/controls/MapRouteInfoControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java index b73fa2394e..0227260130 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java @@ -73,7 +73,7 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio @Override public boolean onSingleTap(PointF point, RotatedTileBox tileBox) { if(selectFromMapTouch) { - LatLon latlon = tileBox.getLatLonFromPixel(point.x, point.y); + LatLon new latlon = tileBox.getLatLonFromPixel(point.x, point.y); selectFromMapTouch = false; //TODO: Hardy: Looks like there is a small bug here somewhere: Re-selecting the "From" or "To" point during an ongoing route calculation (and only then) seems to (sometimes?) only interrupt the ongoing route calculation, but not restart it again with the new points if(selectFromMapForTarget) {