From 07cac3e3c1de3534a2bda5b62365cc942ba5f02b Mon Sep 17 00:00:00 2001 From: Denis_Bars Date: Mon, 4 Aug 2014 10:43:15 +0300 Subject: [PATCH] Fixed bug with navigation dialog being opened every time --- .../net/osmand/plus/views/controls/MapRouteInfoControl.java | 4 +++- 1 file changed, 3 insertions(+), 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 f565ce6f2f..2c3e74aaa5 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java @@ -87,7 +87,9 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio public void showControls(FrameLayout parent) { infoButton = addButton(parent, R.string.route_info, R.drawable.map_btn_signpost); if (showDialog){ - showDialog(); + if (getTargets().getPointToNavigate() == null){ + showDialog(); + } showDialog = false; } controlVisible = true;