Add destination on plus button if no destination selected

This commit is contained in:
crimean 2019-03-05 19:21:41 +03:00
parent ab37997f47
commit 4cbfd2bcb5

View file

@ -1124,7 +1124,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
toButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
openAddPointDialog(PointType.INTERMEDIATE);
openAddPointDialog(app.getTargetPointsHelper().getPointToNavigate() == null ? PointType.TARGET : PointType.INTERMEDIATE);
}
});