Fixed #4929
This commit is contained in:
parent
a968d55292
commit
1aee5df49d
2 changed files with 7 additions and 0 deletions
|
@ -123,6 +123,10 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
|
||||||
this.onDismissListener = onDismissListener;
|
this.onDismissListener = onDismissListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void cancelSelectionFromMap() {
|
||||||
|
selectFromMapTouch = false;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean onSingleTap(PointF point, RotatedTileBox tileBox) {
|
public boolean onSingleTap(PointF point, RotatedTileBox tileBox) {
|
||||||
if (selectFromMapTouch) {
|
if (selectFromMapTouch) {
|
||||||
LatLon latlon = tileBox.getLatLonFromPixel(point.x, point.y);
|
LatLon latlon = tileBox.getLatLonFromPixel(point.x, point.y);
|
||||||
|
|
|
@ -450,6 +450,9 @@ public class MapControlsLayer extends OsmandMapLayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onNavigationClick() {
|
private void onNavigationClick() {
|
||||||
|
if (mapRouteInfoMenu != null) {
|
||||||
|
mapRouteInfoMenu.cancelSelectionFromMap();
|
||||||
|
}
|
||||||
MapActivity.clearPrevActivityIntent();
|
MapActivity.clearPrevActivityIntent();
|
||||||
RoutingHelper routingHelper = mapActivity.getRoutingHelper();
|
RoutingHelper routingHelper = mapActivity.getRoutingHelper();
|
||||||
if (!routingHelper.isFollowingMode() && !routingHelper.isRoutePlanningMode()) {
|
if (!routingHelper.isFollowingMode() && !routingHelper.isRoutePlanningMode()) {
|
||||||
|
|
Loading…
Reference in a new issue