From c4dd01cff77156da49bfe496f638c050baf0c9f6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 13 Aug 2012 01:30:56 +0200 Subject: [PATCH] Remove test UI --- .../src/net/osmand/plus/views/MapControlsLayer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index 3d9a3d36f3..32fd5e72d3 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -303,11 +303,11 @@ public class MapControlsLayer extends OsmandMapLayer { @Override public void onClick(View v) { if (view.isZooming()) { -// activity.changeZoom(view.getZoom() + 2 ); - activity.changeZoom(view.getFloatZoom() + 2 * OsmandMapTileView.ZOOM_DELTA_1 ); + activity.changeZoom(view.getZoom() + 2 ); +// activity.changeZoom(view.getFloatZoom() + 2 * OsmandMapTileView.ZOOM_DELTA_1 ); } else { -// activity.changeZoom(view.getZoom() + 1 ); - activity.changeZoom(view.getFloatZoom() + 1 * OsmandMapTileView.ZOOM_DELTA_1 ); + activity.changeZoom(view.getZoom() + 1 ); +// activity.changeZoom(view.getFloatZoom() + 1 * OsmandMapTileView.ZOOM_DELTA_1 ); } } @@ -316,8 +316,8 @@ public class MapControlsLayer extends OsmandMapLayer { zoomOutButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { -// activity.changeZoom(view.getZoom() - 1 ); - activity.changeZoom(view.getFloatZoom() - 1 * OsmandMapTileView.ZOOM_DELTA_1 ); + activity.changeZoom(view.getZoom() - 1 ); +// activity.changeZoom(view.getFloatZoom() - 1 * OsmandMapTileView.ZOOM_DELTA_1 ); } }); }