diff options
author | blafoo <github@blafoo.de> | 2011-10-26 16:52:36 +0200 |
---|---|---|
committer | blafoo <github@blafoo.de> | 2011-10-26 23:25:40 +0200 |
commit | a7824dc9af750ebb771e4343423eac1225f9645b (patch) | |
tree | 70ce833ba7583b6be1a4f76459ae80820599fdc7 /main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java | |
parent | 02701ff1964407b780b8c0be0d69d513ed1cce85 (diff) | |
download | cgeo-a7824dc9af750ebb771e4343423eac1225f9645b.zip cgeo-a7824dc9af750ebb771e4343423eac1225f9645b.tar.gz cgeo-a7824dc9af750ebb771e4343423eac1225f9645b.tar.bz2 |
No direct access to fields
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java b/main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java index 16fc04d..cb0b520 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/RMapsApp.java @@ -14,7 +14,7 @@ import android.content.res.Resources; import java.util.ArrayList; import java.util.Locale; -class RMapsApp extends AbstractNavigationApp implements NavigationApp { +class RMapsApp extends AbstractNavigationApp { private static final String INTENT = "com.robert.maps.action.SHOW_POINTS"; @@ -33,24 +33,24 @@ class RMapsApp extends AbstractNavigationApp implements NavigationApp { try { if (isInstalled(activity)) { final ArrayList<String> locations = new ArrayList<String>(); - if (cache != null && cache.coords != null) { + if (cache != null && cache.getCoords() != null) { locations.add(String.format((Locale) null, "%.6f", - cache.coords.getLatitude()) + cache.getCoords().getLatitude()) + "," + String.format((Locale) null, "%.6f", - cache.coords.getLongitude()) + cache.getCoords().getLongitude()) + ";" - + cache.geocode - + ";" + cache.name); - } else if (waypoint != null && waypoint.coords != null) { + + cache.getGeocode() + + ";" + cache.getName()); + } else if (waypoint != null && waypoint.getCoords() != null) { locations.add(String.format((Locale) null, "%.6f", - waypoint.coords.getLatitude()) + waypoint.getCoords().getLatitude()) + "," + String.format((Locale) null, "%.6f", - waypoint.coords.getLongitude()) + waypoint.getCoords().getLongitude()) + ";" - + waypoint.lookup - + ";" + waypoint.name); + + waypoint.getLookup() + + ";" + waypoint.getName()); } final Intent intent = new Intent(INTENT); |