diff options
author | ByteHamster <info@bytehamster.com> | 2018-03-23 14:33:23 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-03-23 14:33:23 +0100 |
commit | afb9f7db6abcf8f04d32971e5a4873adee940f10 (patch) | |
tree | a474521eb5c0a0ffd3b8e2d17d6c1ca4388abd7a /core | |
parent | c13acc624dcf680c00f629bccf580da3a5ae133d (diff) | |
download | AntennaPod-afb9f7db6abcf8f04d32971e5a4873adee940f10.zip |
Fixes empty contentEncoded
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java | 3 |
1 files changed, 2 insertions, 1 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 7b387b1d3..a35ead4cd 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 @@ -3,6 +3,7 @@ package de.danoeh.antennapod.core.feed; import android.database.Cursor; import android.support.annotation.Nullable; +import android.text.TextUtils; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; @@ -372,7 +373,7 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, Flattr if (contentEncoded == null || description == null) { DBReader.loadExtraInformationOfFeedItem(FeedItem.this); } - return (contentEncoded != null) ? contentEncoded : description; + return (!TextUtils.isEmpty(contentEncoded)) ? contentEncoded : description; }; } |