aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-10-22 08:13:22 +0200
committerrsudev <rasch@munin-soft.de>2014-10-22 08:14:00 +0200
commit0358006f8c661acc3688ce5289f8c60846c1cac8 (patch)
tree0cf61964fa97556a05a39de1b4dc246486c93e33
parent4b1157b13b577a379ace409e805c49ed13fc320c (diff)
downloadcgeo-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.java4
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) {