diff options
| author | rsudev <rasch@munin-soft.de> | 2014-10-22 08:13:22 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2014-10-22 08:14:00 +0200 |
| commit | 0358006f8c661acc3688ce5289f8c60846c1cac8 (patch) | |
| tree | 0cf61964fa97556a05a39de1b4dc246486c93e33 | |
| parent | 4b1157b13b577a379ace409e805c49ed13fc320c (diff) | |
| download | cgeo-0358006f8c661acc3688ce5289f8c60846c1cac8.zip cgeo-0358006f8c661acc3688ce5289f8c60846c1cac8.tar.gz cgeo-0358006f8c661acc3688ce5289f8c60846c1cac8.tar.bz2 | |
Fixes #4423, Last zoom not remembered
- corrected check condition
| -rw-r--r-- | main/src/cgeo/geocaching/settings/Settings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/settings/Settings.java b/main/src/cgeo/geocaching/settings/Settings.java index 4713594..3bbfe94 100644 --- a/main/src/cgeo/geocaching/settings/Settings.java +++ b/main/src/cgeo/geocaching/settings/Settings.java @@ -657,7 +657,7 @@ public class Settings { * @return zoom used for the (live) map */ private static int getMapZoom() { - return Math.min(getInt(R.string.pref_lastmapzoom, 14), INITIAL_MAP_ZOOM_LIMIT); + return Math.max(getInt(R.string.pref_lastmapzoom, 14), INITIAL_MAP_ZOOM_LIMIT); } private static void setMapZoom(final int mapZoomLevel) { @@ -668,7 +668,7 @@ public class Settings { * @return zoom used for the map of a single cache */ private static int getCacheZoom() { - return Math.min(getInt(R.string.pref_cache_zoom, 14), INITIAL_MAP_ZOOM_LIMIT); + return Math.max(getInt(R.string.pref_cache_zoom, 14), INITIAL_MAP_ZOOM_LIMIT); } private static void setCacheZoom(final int zoomLevel) { |
