From e21c4ffeaac35ce4c33023eab64ddfaa5302a7b1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 14 Apr 2020 21:59:37 +0200 Subject: [PATCH] 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. --- .../main/java/de/danoeh/antennapod/core/feed/FeedItem.java | 7 ++++--- 1 file 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) {