Fixed bug with navigation dialog being opened every time

This commit is contained in:
Denis_Bars 2014-08-04 10:43:15 +03:00
parent 12e751abd9
commit 07cac3e3c1

View file

@ -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;