summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-04-14 21:59:37 +0200
committerByteHamster <info@bytehamster.com>2020-04-14 21:59:49 +0200
commite21c4ffeaac35ce4c33023eab64ddfaa5302a7b1 (patch)
tree49e371afc3e319de10cca91ff914552e3b8a8f2f /core
parent8c9e78a41705def165b8baf480fb4986b1d05603 (diff)
downloadAntennaPod-e21c4ffeaac35ce4c33023eab64ddfaa5302a7b1.zip
Fixed not displaying embedded pictures
When items were written to the database, their RSS specified image was set to the podcast's image. This prevented displaying the embedded picture because the image specified in RSS has a higher priority than the image that is embedded.
Diffstat (limited to 'core')
-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) {