Fix context menu

This commit is contained in:
Alexey Kulish 2015-12-22 00:15:16 +03:00
parent 72e1dc6b1a
commit 45e4083611

View file

@ -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();
}