diff options
author | orionlee <orionlee@yahoo.com> | 2018-04-30 14:59:45 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2018-04-30 15:03:04 -0700 |
commit | 4bba6b30a1b5e82b93edc27742ec35362b08d1c7 (patch) | |
tree | 59cabda48d1d74c7060e8c184d6021afed0c8be5 /app | |
parent | 9d3d92cc9d98a908a5e2147aee0c6d5cb6b4db47 (diff) | |
download | AntennaPod-4bba6b30a1b5e82b93edc27742ec35362b08d1c7.zip |
Issue #2579: Provide share Link in episode playback screen even
when the episode has no link - Use podcast link as the fallback.
Also bug fix share link with position: to include epsiode
and podcast title.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index 21e375435..b9d261b0e 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -324,7 +324,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements menu.findItem(R.id.visit_website_item).setVisible(hasWebsiteLink); boolean isItemAndHasLink = isFeedMedia && - ((FeedMedia) media).getItem() != null && ((FeedMedia) media).getItem().getLink() != null; + ShareUtils.hasLinkToShare(((FeedMedia) media).getItem()); menu.findItem(R.id.share_link_item).setVisible(isItemAndHasLink); menu.findItem(R.id.share_link_with_position_item).setVisible(isItemAndHasLink); |