This commit is contained in:
PaulStets 2018-01-23 15:04:26 +02:00
parent a968d55292
commit 1aee5df49d
2 changed files with 7 additions and 0 deletions

View file

@ -123,6 +123,10 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
this.onDismissListener = onDismissListener;
}
public void cancelSelectionFromMap() {
selectFromMapTouch = false;
}
public boolean onSingleTap(PointF point, RotatedTileBox tileBox) {
if (selectFromMapTouch) {
LatLon latlon = tileBox.getLatLonFromPixel(point.x, point.y);

View file

@ -450,6 +450,9 @@ public class MapControlsLayer extends OsmandMapLayer {
}
private void onNavigationClick() {
if (mapRouteInfoMenu != null) {
mapRouteInfoMenu.cancelSelectionFromMap();
}
MapActivity.clearPrevActivityIntent();
RoutingHelper routingHelper = mapActivity.getRoutingHelper();
if (!routingHelper.isFollowingMode() && !routingHelper.isRoutePlanningMode()) {