aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-08-06 18:32:47 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-08-06 18:32:47 +0200
commitd08f8540f183aee11564f9bd186140a552da4521 (patch)
tree80b12056351a6a9e835f0897c770abe3886e4cd2 /main
parentc323445a9c1c7e834b36cbb59dc1ecfe7aaa771a (diff)
downloadcgeo-d08f8540f183aee11564f9bd186140a552da4521.zip
cgeo-d08f8540f183aee11564f9bd186140a552da4521.tar.gz
cgeo-d08f8540f183aee11564f9bd186140a552da4521.tar.bz2
fix #3110: Increase default for waypoints in map
Diffstat (limited to 'main')
-rw-r--r--main/res/values/preference_keys.xml2
-rw-r--r--main/res/xml/preferences.xml2
-rw-r--r--main/src/cgeo/geocaching/settings/Settings.java10
3 files changed, 7 insertions, 7 deletions
diff --git a/main/res/values/preference_keys.xml b/main/res/values/preference_keys.xml
index 26154e5..bc467f0 100644
--- a/main/res/values/preference_keys.xml
+++ b/main/res/values/preference_keys.xml
@@ -37,7 +37,7 @@
<string name="pref_mapsource">mapsource</string>
<string name="pref_mapDirectory">mapDirectory</string>
<string name="pref_renderthemepath">renderthemepath</string>
- <string name="pref_gcshowwaypointsthreshold">gcshowwaypointsthreshold</string>
+ <string name="pref_showwaypointsthreshold">waypointsthreshold</string>
<string name="pref_maptrail">maptrail</string>
<string name="pref_defaultNavigationTool">defaultNavigationTool</string>
<string name="pref_defaultNavigationTool2">defaultNavigationTool2</string>
diff --git a/main/res/xml/preferences.xml b/main/res/xml/preferences.xml
index a83cae6..7cf3385 100644
--- a/main/res/xml/preferences.xml
+++ b/main/res/xml/preferences.xml
@@ -260,7 +260,7 @@
android:summary="@string/init_showwaypoint_description"
android:selectable="false" />
<cgeo.geocaching.settings.WpThresholdPreference
- android:key="@string/pref_gcshowwaypointsthreshold"
+ android:key="@string/pref_showwaypointsthreshold"
android:layout="@layout/wp_threshold_preference" />
<CheckBoxPreference
diff --git a/main/src/cgeo/geocaching/settings/Settings.java b/main/src/cgeo/geocaching/settings/Settings.java
index 49c1764..1192ddf 100644
--- a/main/src/cgeo/geocaching/settings/Settings.java
+++ b/main/src/cgeo/geocaching/settings/Settings.java
@@ -43,7 +43,7 @@ import java.util.Locale;
*/
public final class Settings {
- public static final int SHOW_WP_THRESHOLD_DEFAULT = 5;
+ public static final int SHOW_WP_THRESHOLD_DEFAULT = 10;
public static final int SHOW_WP_THRESHOLD_MAX = 50;
private static final int MAP_SOURCE_DEFAULT = GoogleMapProvider.GOOGLE_MAP_ID.hashCode();
@@ -138,7 +138,7 @@ public final class Settings {
e.putBoolean(getKey(R.string.pref_choose_list), old.getBoolean(getKey(R.string.pref_choose_list), false));
e.putBoolean(getKey(R.string.pref_loaddirectionimg), old.getBoolean(getKey(R.string.pref_loaddirectionimg), true));
e.putString(getKey(R.string.pref_gccustomdate), old.getString(getKey(R.string.pref_gccustomdate), null));
- e.putInt(getKey(R.string.pref_gcshowwaypointsthreshold), old.getInt(getKey(R.string.pref_gcshowwaypointsthreshold), 0));
+ e.putInt(getKey(R.string.pref_showwaypointsthreshold), old.getInt(getKey(R.string.pref_showwaypointsthreshold), SHOW_WP_THRESHOLD_DEFAULT));
e.putString(getKey(R.string.pref_cookiestore), old.getString(getKey(R.string.pref_cookiestore), null));
e.putBoolean(getKey(R.string.pref_opendetailslastpage), old.getBoolean(getKey(R.string.pref_opendetailslastpage), false));
e.putInt(getKey(R.string.pref_lastdetailspage), old.getInt(getKey(R.string.pref_lastdetailspage), 1));
@@ -166,7 +166,7 @@ public final class Settings {
} else if (wpThreshold > SHOW_WP_THRESHOLD_MAX) {
wpThreshold = SHOW_WP_THRESHOLD_MAX;
}
- e.putInt(getKey(R.string.pref_gcshowwaypointsthreshold), wpThreshold);
+ e.putInt(getKey(R.string.pref_showwaypointsthreshold), wpThreshold);
// KEY_MAP_SOURCE must be string, because it is the key for a ListPreference now
int ms = sharedPrefs.getInt(getKey(R.string.pref_mapsource), MAP_SOURCE_DEFAULT);
@@ -723,11 +723,11 @@ public final class Settings {
* The Threshold for the showing of child waypoints
*/
public static int getWayPointsThreshold() {
- return getInt(R.string.pref_gcshowwaypointsthreshold, SHOW_WP_THRESHOLD_DEFAULT);
+ return getInt(R.string.pref_showwaypointsthreshold, SHOW_WP_THRESHOLD_DEFAULT);
}
public static void setShowWaypointsThreshold(final int threshold) {
- putInt(R.string.pref_gcshowwaypointsthreshold, threshold);
+ putInt(R.string.pref_showwaypointsthreshold, threshold);
}
public static boolean isUseTwitter() {