Fixes empty contentEncoded

This commit is contained in:
ByteHamster 2018-03-23 14:33:23 +01:00
parent c13acc624d
commit afb9f7db6a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
};
}