summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-04-16 17:08:43 +0200
committerGitHub <noreply@github.com>2020-04-16 17:08:43 +0200
commitc8790336b7884137ae125eaeeb66e620bca4bd96 (patch)
treef09f969a40e3b0fa6452bd0bd618c8006214d01a
parentdeb13b8b24596704a3cbc09a338860c2414b5bf4 (diff)
parente21c4ffeaac35ce4c33023eab64ddfaa5302a7b1 (diff)
downloadAntennaPod-c8790336b7884137ae125eaeeb66e620bca4bd96.zip
Merge pull request #4059 from ByteHamster/fix-embedded-picture
Fixed not displaying embedded pictures
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
index 24ba79b8b..20ed402fc 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
@@ -411,11 +411,12 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, ImageR
}
/**
- * Returns the image of this item or the image of the feed if this item does
- * not have its own image.
+ * Returns the image of this item, as specified in the feed.
+ * To load the image that can be displayed to the user, use {@link #getImageLocation},
+ * which also considers embedded pictures or the feed picture if no other picture is present.
*/
public String getImageUrl() {
- return (imageUrl != null) ? imageUrl : feed.getImageUrl();
+ return imageUrl;
}
public void setImageUrl(String imageUrl) {