Merge pull request #4936 from osmandapp/PaulsBranch

Fixed #4929
This commit is contained in:
Alexander Sytnyk 2018-01-23 15:07:16 +02:00 committed by GitHub
commit fe6565b833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()) {