commit
fe6565b833
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue