diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index f17279e91b..78ea3a8289 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -688,9 +688,6 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents { if (menu.displayDistanceDirection()) { getMapActivity().getMapViewTrackingUtilities().setContextMenu(menu); } - if (centered) { - centerMarkerLocation(); - } } @Override @@ -765,6 +762,9 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents { origMarkerY = view.getHeight() / 2; } + if (initLayout && centered) { + centerMarkerLocation(); + } if (!moving) { doLayoutMenu(); }