aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/enumerations
diff options
context:
space:
mode:
authortriakcz <kunc88@gmail.com>2012-12-17 22:03:54 +0100
committertriakcz <kunc88@gmail.com>2012-12-18 00:06:26 +0100
commitb2951e465ca783c4eab32e642ed885625b417f12 (patch)
tree5eba9850b91a6455c1629d2a277c2f504638e9ce /main/src/cgeo/geocaching/enumerations
parent5ad007ed7938a9b284278b34a77ec21a0061fd86 (diff)
downloadcgeo-b2951e465ca783c4eab32e642ed885625b417f12.zip
cgeo-b2951e465ca783c4eab32e642ed885625b417f12.tar.gz
cgeo-b2951e465ca783c4eab32e642ed885625b417f12.tar.bz2
Uploading of modified coords to geocaching.com
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations')
-rw-r--r--main/src/cgeo/geocaching/enumerations/WaypointType.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/WaypointType.java b/main/src/cgeo/geocaching/enumerations/WaypointType.java
index 52eb318..1e4fc1e 100644
--- a/main/src/cgeo/geocaching/enumerations/WaypointType.java
+++ b/main/src/cgeo/geocaching/enumerations/WaypointType.java
@@ -19,7 +19,8 @@ public enum WaypointType {
PUZZLE("puzzle", R.string.wp_puzzle, R.drawable.waypoint_puzzle),
STAGE("stage", R.string.wp_stage, R.drawable.waypoint_stage),
TRAILHEAD("trailhead", R.string.wp_trailhead, R.drawable.waypoint_trailhead),
- WAYPOINT("waypoint", R.string.wp_waypoint, R.drawable.waypoint_waypoint);
+ WAYPOINT("waypoint", R.string.wp_waypoint, R.drawable.waypoint_waypoint),
+ ORIGINAL("original", R.string.wp_original, R.drawable.waypoint_waypoint);
public final String id;
public final int stringId;
@@ -36,13 +37,13 @@ public enum WaypointType {
* non public so that <code>null</code> handling can be handled centrally in the enum type itself
*/
private static final Map<String, WaypointType> FIND_BY_ID;
- public static final Set<WaypointType> ALL_TYPES_EXCEPT_OWN = new HashSet<WaypointType>();
+ public static final Set<WaypointType> ALL_TYPES_EXCEPT_OWN_AND_ORIGINAL = new HashSet<WaypointType>();
static {
final HashMap<String, WaypointType> mapping = new HashMap<String, WaypointType>();
for (WaypointType wt : values()) {
mapping.put(wt.id, wt);
- if (wt != WaypointType.OWN) {
- ALL_TYPES_EXCEPT_OWN.add(wt);
+ if (wt != WaypointType.OWN && wt != WaypointType.ORIGINAL) {
+ ALL_TYPES_EXCEPT_OWN_AND_ORIGINAL.add(wt);
}
}
FIND_BY_ID = Collections.unmodifiableMap(mapping);
@@ -67,7 +68,6 @@ public enum WaypointType {
return cgeoapplication.getInstance().getBaseContext().getResources().getString(stringId);
}
-
@Override
public final String toString() {
return getL10n();