Zoom map to center when context menu is open
This commit is contained in:
parent
2ca1f319f9
commit
0becec1231
1 changed files with 2 additions and 2 deletions
|
@ -920,7 +920,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
getMapActivity().changeZoom(2, System.currentTimeMillis());
|
getMapActivity().changeZoom(2, System.currentTimeMillis());
|
||||||
} else {
|
} else {
|
||||||
if (!map.hasCustomMapRatio()) {
|
if (!map.hasCustomMapRatio()) {
|
||||||
setCustomMapRatio();
|
//setCustomMapRatio();
|
||||||
}
|
}
|
||||||
getMapActivity().changeZoom(1, System.currentTimeMillis());
|
getMapActivity().changeZoom(1, System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
@ -928,7 +928,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
|
|
||||||
public void doZoomOut() {
|
public void doZoomOut() {
|
||||||
if (!map.hasCustomMapRatio()) {
|
if (!map.hasCustomMapRatio()) {
|
||||||
setCustomMapRatio();
|
//setCustomMapRatio();
|
||||||
}
|
}
|
||||||
getMapActivity().changeZoom(-1, System.currentTimeMillis());
|
getMapActivity().changeZoom(-1, System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue