Fix #5961
This commit is contained in:
parent
122b036c45
commit
2fe7debf05
1 changed files with 1 additions and 11 deletions
|
@ -124,7 +124,6 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
|
|
||||||
private OsmandMapTileView map;
|
private OsmandMapTileView map;
|
||||||
private LatLon mapCenter;
|
private LatLon mapCenter;
|
||||||
private int mapZoom;
|
|
||||||
private int origMarkerX;
|
private int origMarkerX;
|
||||||
private int origMarkerY;
|
private int origMarkerY;
|
||||||
private boolean customMapCenter;
|
private boolean customMapCenter;
|
||||||
|
@ -202,10 +201,6 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
origMarkerX = box.getCenterPixelX();
|
origMarkerX = box.getCenterPixelX();
|
||||||
origMarkerY = box.getCenterPixelY();
|
origMarkerY = box.getCenterPixelY();
|
||||||
}
|
}
|
||||||
mapZoom = menu.getMapZoom();
|
|
||||||
if (mapZoom == 0) {
|
|
||||||
mapZoom = map.getZoom();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Left title button
|
// Left title button
|
||||||
final View leftTitleButtonView = view.findViewById(R.id.title_button_view);
|
final View leftTitleButtonView = view.findViewById(R.id.title_button_view);
|
||||||
|
@ -1247,13 +1242,8 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
if (!menu.isActive()) {
|
if (!menu.isActive()) {
|
||||||
if (mapCenter != null) {
|
if (mapCenter != null) {
|
||||||
if (mapZoom == 0) {
|
|
||||||
mapZoom = map.getZoom();
|
|
||||||
}
|
|
||||||
//map.setLatLon(mapCenter.getLatitude(), mapCenter.getLongitude());
|
|
||||||
//map.setIntZoom(mapZoom);
|
|
||||||
AnimateDraggingMapThread thread = map.getAnimatedDraggingThread();
|
AnimateDraggingMapThread thread = map.getAnimatedDraggingThread();
|
||||||
thread.startMoving(mapCenter.getLatitude(), mapCenter.getLongitude(), mapZoom, true);
|
thread.startMoving(mapCenter.getLatitude(), mapCenter.getLongitude(), map.getZoom(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
menu.setMapCenter(null);
|
menu.setMapCenter(null);
|
||||||
|
|
Loading…
Reference in a new issue