diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-01-03 08:36:48 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-01-03 08:36:48 +0100 |
| commit | efe2fb79e2d3dd5b8077b26b5151a8f8d710e135 (patch) | |
| tree | a9e6f36c93936accfc98b47b9c71b037af7a80db /main | |
| parent | 72c96930b900a9807373e2744658fd792ee13a52 (diff) | |
| download | cgeo-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.java | 2 |
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() { |
