summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/menuhandler
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2017-04-18 10:50:47 +0200
committerByteHamster <info@bytehamster.com>2017-05-03 20:41:10 +0200
commit932f24c892306ece534a0027472b6939b5b85c91 (patch)
tree158be2d08eb7a2aede63ad6aa21befb7607d0359 /app/src/main/java/de/danoeh/antennapod/menuhandler
parent776f2234bef4046f61a2cc817ef0d53a229400de (diff)
downloadAntennaPod-932f24c892306ece534a0027472b6939b5b85c91.zip
Allow sharing feed file, as suggested in #2236
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/menuhandler')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
index 6799114f7..27eb2d9bb 100644
--- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
+++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
@@ -101,6 +101,8 @@ public class FeedItemMenuHandler {
mi.setItemVisibility(R.id.share_download_url_with_position_item, false);
}
+ mi.setItemVisibility(R.id.share_file, selectedItem.getMedia().fileExists());
+
if (selectedItem.isPlayed()) {
mi.setItemVisibility(R.id.mark_read_item, false);
} else {
@@ -239,6 +241,9 @@ public class FeedItemMenuHandler {
case R.id.share_download_url_with_position_item:
ShareUtils.shareFeedItemDownloadLink(context, selectedItem, true);
break;
+ case R.id.share_file:
+ ShareUtils.shareFeedItemFile(context, selectedItem.getMedia());
+ break;
default:
Log.d(TAG, "Unknown menuItemId: " + menuItemId);
return false;