diff options
author | ByteHamster <info@bytehamster.com> | 2020-07-12 23:05:30 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-07-12 23:05:30 +0200 |
commit | 75ef24159e163305193b2489da9c80a2a17c33be (patch) | |
tree | 8111a04136a5f5e52b9d8b5e5ca5c8a35aa71573 /app/src/main/java/de/danoeh/antennapod/menuhandler | |
parent | 2488d93225caecb298a2da918643e47e64d62269 (diff) | |
download | AntennaPod-75ef24159e163305193b2489da9c80a2a17c33be.zip |
Do not allow to visit website of local items
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/menuhandler')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java | 5 |
1 files changed, 4 insertions, 1 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 1f15f66ec..5860a2c5e 100644 --- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java +++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java @@ -68,10 +68,13 @@ public class FeedItemMenuHandler { setItemVisibility(menu, R.id.share_download_url_item, false); setItemVisibility(menu, R.id.share_download_url_with_position_item, false); } - if(!hasMedia || selectedItem.getMedia().getPosition() <= 0) { + if (!hasMedia || selectedItem.getMedia().getPosition() <= 0) { setItemVisibility(menu, R.id.share_download_url_with_position_item, false); setItemVisibility(menu, R.id.share_link_with_position_item, false); } + if (selectedItem.getFeed().isLocalFeed()) { + setItemVisibility(menu, R.id.visit_website_item, false); + } boolean fileDownloaded = hasMedia && selectedItem.getMedia().fileExists(); setItemVisibility(menu, R.id.share_file, fileDownloaded); |