aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/Geocache.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-06-13 18:16:37 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-06-13 18:16:37 +0200
commitcd7aa418f10e85d45ee558e5e1aaae079fe3a673 (patch)
tree0d1311cc41214eb1b6999db31007b582b2055efa /main/src/cgeo/geocaching/Geocache.java
parentee7a23273485dabf720b74d64d7d4a9a7a4f80f4 (diff)
downloadcgeo-cd7aa418f10e85d45ee558e5e1aaae079fe3a673.zip
cgeo-cd7aa418f10e85d45ee558e5e1aaae079fe3a673.tar.gz
cgeo-cd7aa418f10e85d45ee558e5e1aaae079fe3a673.tar.bz2
fix #3907: duplicate share menu
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 193930c..14a1313 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -713,17 +713,7 @@ public class Geocache implements ICache, IWaypoint {
return getConnector() instanceof ISearchByCenter;
}
- public void shareCache(final Activity fromActivity, final Resources res) {
- if (geocode == null) {
- return;
- }
-
- final Intent intent = getIntent();
-
- fromActivity.startActivity(Intent.createChooser(intent, res.getText(R.string.action_bar_share_title)));
- }
-
- public Intent getIntent() {
+ public Intent getShareIntent() {
final StringBuilder subject = new StringBuilder("Geocache ");
subject.append(geocode);
if (StringUtils.isNotBlank(name)) {