aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-01-31 19:38:41 +0100
committerBananeweizen <bananeweizen@gmx.de>2014-01-31 19:38:41 +0100
commit0ab24e4e2a4033c34b62a4b6864958e78513592e (patch)
tree973724fb790977548a5a6b2a395c0e0c2403c409 /main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java
parent3ce1488a9fafd44992d7a408146a9b1c3702f11e (diff)
downloadcgeo-0ab24e4e2a4033c34b62a4b6864958e78513592e.zip
cgeo-0ab24e4e2a4033c34b62a4b6864958e78513592e.tar.gz
cgeo-0ab24e4e2a4033c34b62a4b6864958e78513592e.tar.bz2
#3581: have waypoint name in radar
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java')
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java b/main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java
index 7cc5a4f..16b2513 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractPointNavigationApp.java
@@ -51,11 +51,21 @@ abstract class AbstractPointNavigationApp extends AbstractApp implements CacheNa
return waypoint.getCoords() != null;
}
- protected static void addIntentExtras(final Geocache cache, final Intent intent) {
+ protected static void addIntentExtras(final Intent intent, final Waypoint waypoint) {
+ intent.putExtra("name", waypoint.getName());
+ intent.putExtra("code", waypoint.getGeocode());
+ }
+
+ protected static void addIntentExtras(final Intent intent, final Geocache cache) {
intent.putExtra("difficulty", cache.getDifficulty());
intent.putExtra("terrain", cache.getTerrain());
intent.putExtra("name", cache.getName());
intent.putExtra("code", cache.getGeocode());
intent.putExtra("size", cache.getSize().getL10n());
}
+
+ protected static void addCoordinates(final Intent intent, final Geopoint coords) {
+ intent.putExtra("latitude", coords.getLatitude());
+ intent.putExtra("longitude", coords.getLongitude());
+ }
}