aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-01-03 08:36:48 +0100
committerBananeweizen <bananeweizen@gmx.de>2014-01-03 08:36:48 +0100
commitefe2fb79e2d3dd5b8077b26b5151a8f8d710e135 (patch)
treea9e6f36c93936accfc98b47b9c71b037af7a80db /main
parent72c96930b900a9807373e2744658fd792ee13a52 (diff)
downloadcgeo-efe2fb79e2d3dd5b8077b26b5151a8f8d710e135.zip
cgeo-efe2fb79e2d3dd5b8077b26b5151a8f8d710e135.tar.gz
cgeo-efe2fb79e2d3dd5b8077b26b5151a8f8d710e135.tar.bz2
#3224: limit initial zoom on live map
My last commit was actually limiting the zoom to be at _most_ 12, instead of at _least_.
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 7eafe8d..1ae00dc 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -477,7 +477,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
* @param zoom
*/
private void setZoom(final int zoom) {
- mapView.getMapController().setZoom(isLiveEnabled ? Math.min(zoom, MIN_LIVEMAP_ZOOM) : zoom);
+ mapView.getMapController().setZoom(isLiveEnabled ? Math.max(zoom, MIN_LIVEMAP_ZOOM) : zoom);
}
private void prepareFilterBar() {