Zoom map to center when context menu is open

This commit is contained in:
Alexey Kulish 2018-10-19 15:42:14 +03:00
parent 2ca1f319f9
commit 0becec1231

View file

@ -920,7 +920,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
getMapActivity().changeZoom(2, System.currentTimeMillis());
} else {
if (!map.hasCustomMapRatio()) {
setCustomMapRatio();
//setCustomMapRatio();
}
getMapActivity().changeZoom(1, System.currentTimeMillis());
}
@ -928,7 +928,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
public void doZoomOut() {
if (!map.hasCustomMapRatio()) {
setCustomMapRatio();
//setCustomMapRatio();
}
getMapActivity().changeZoom(-1, System.currentTimeMillis());
}