diff options
| author | Arne Schwabe <arne@rfc2549.org> | 2014-05-21 19:23:47 +0200 |
|---|---|---|
| committer | Arne Schwabe <arne@rfc2549.org> | 2014-05-24 12:47:45 +0200 |
| commit | cadf1bb896976c5dc04cfd4b1615ad694fec3415 (patch) | |
| tree | c9127c66b7af4af27f41fa886f5f9eb37a67f033 /main/src/cgeo/geocaching/Geocache.java | |
| parent | b91529a6aaf8ac2460ec18cddcafc0d41f83f8b6 (diff) | |
| download | cgeo-cadf1bb896976c5dc04cfd4b1615ad694fec3415.zip cgeo-cadf1bb896976c5dc04cfd4b1615ad694fec3415.tar.gz cgeo-cadf1bb896976c5dc04cfd4b1615ad694fec3415.tar.bz2 | |
Revert the url distinguistion from "Implement Android Beam (NFC Sharing) for cgeo", as it seems the // urls don't work anymore.
This partly reverts commit a0825983139c99a9799503cafdf0dd0e3ce54a2f.
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index 21de4ac..db36740 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().getCacheBrowserUrl(this); + return getConnector().getCacheUrl(this); } private String getBrowserCacheUrl() { @@ -722,17 +722,15 @@ 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, getBrowserUrl()); + intent.putExtra(Intent.EXTRA_TEXT, getUrl()); return intent; } - public String getBrowserUrl() { - return getConnector().getCacheBrowserUrl(this); + public String getUrl() { + return getConnector().getCacheUrl(this); } - public String getCgeoUrl() { return getConnector().getCgeoCacheUrl(this); } - public boolean supportsGCVote() { return StringUtils.startsWithIgnoreCase(geocode, "GC"); } |
