diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-05-20 20:39:13 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-05-20 20:39:13 +0200 |
| commit | bec64dc776e33094f399c188e5a4a299801e45b0 (patch) | |
| tree | 84815623165d21a5f4794dd60d3c1ba3680bf9d8 /main/src/cgeo/geocaching/Geocache.java | |
| parent | 1c54353bc39897df4079a006ef54a42f6a3b4b3c (diff) | |
| parent | a0825983139c99a9799503cafdf0dd0e3ce54a2f (diff) | |
| download | cgeo-bec64dc776e33094f399c188e5a4a299801e45b0.zip cgeo-bec64dc776e33094f399c188e5a4a299801e45b0.tar.gz cgeo-bec64dc776e33094f399c188e5a4a299801e45b0.tar.bz2 | |
Merge pull request #3847 from schwabe/cgeo_nfc
Implement Android Beam (NFC Sharing) for cgeo
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index db36740..21de4ac 100644 --- a/main/src/cgeo/geocaching/Geocache.java +++ b/main/src/cgeo/geocaching/Geocache.java @@ -501,7 +501,7 @@ public class Geocache implements ICache, IWaypoint { } private String getCacheUrl() { - return getConnector().getCacheUrl(this); + return getConnector().getCacheBrowserUrl(this); } private String getBrowserCacheUrl() { @@ -722,15 +722,17 @@ public class Geocache implements ICache, IWaypoint { final Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, subject.toString()); - intent.putExtra(Intent.EXTRA_TEXT, getUrl()); + intent.putExtra(Intent.EXTRA_TEXT, getBrowserUrl()); return intent; } - public String getUrl() { - return getConnector().getCacheUrl(this); + public String getBrowserUrl() { + return getConnector().getCacheBrowserUrl(this); } + public String getCgeoUrl() { return getConnector().getCgeoCacheUrl(this); } + public boolean supportsGCVote() { return StringUtils.startsWithIgnoreCase(geocode, "GC"); } |
