diff options
| author | rsudev <rasch@munin-soft.de> | 2014-06-17 22:52:10 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2014-06-17 22:52:10 +0200 |
| commit | 764a9c50cd8b006c4ab8ab7b29a99e4023fb5e61 (patch) | |
| tree | 177a5eb285d3f186e849d96b5ef2d165d693794b /main/src/cgeo/geocaching/Geocache.java | |
| parent | 7567cb65c4b27500fb93a561b0288ccf13f5ac1e (diff) | |
| parent | 219b102fac2d8417426e70c07ba43d3a5ff86821 (diff) | |
| download | cgeo-764a9c50cd8b006c4ab8ab7b29a99e4023fb5e61.zip cgeo-764a9c50cd8b006c4ab8ab7b29a99e4023fb5e61.tar.gz cgeo-764a9c50cd8b006c4ab8ab7b29a99e4023fb5e61.tar.bz2 | |
Merge pull request #4006 from schwabe/fix_3996
In Popup Menus the share item does not always have actionProvider, check...
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index 14a1313..f3ff487 100644 --- a/main/src/cgeo/geocaching/Geocache.java +++ b/main/src/cgeo/geocaching/Geocache.java @@ -713,6 +713,15 @@ 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 = getShareIntent(); + + fromActivity.startActivity(Intent.createChooser(intent, res.getText(R.string.cache_menu_share))); + } public Intent getShareIntent() { final StringBuilder subject = new StringBuilder("Geocache "); subject.append(geocode); |
