FeedItem shownotes weren't always loaded correctly
This commit is contained in:
parent
94a38debdf
commit
84dd063568
src/de/danoeh/antennapod
@ -285,7 +285,8 @@ public class FeedMedia extends FeedFile implements Playable {
|
||||
|
||||
@Override
|
||||
public void loadShownotes(final ShownoteLoaderCallback callback) {
|
||||
if (item.getDescription() == null || item.getContentEncoded() == null) {
|
||||
String contentEncoded = item.getContentEncoded();
|
||||
if (item.getDescription() == null || contentEncoded == null) {
|
||||
FeedManager.getInstance().loadExtraInformationOfItem(
|
||||
PodcastApp.getInstance(), item,
|
||||
new FeedManager.TaskCallback<String[]>() {
|
||||
@ -301,7 +302,7 @@ public class FeedMedia extends FeedFile implements Playable {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
callback.onShownotesLoaded(item.getContentEncoded());
|
||||
callback.onShownotesLoaded(contentEncoded);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -186,6 +186,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
||||
});
|
||||
} else {
|
||||
shownotes = item.getContentEncoded();
|
||||
startLoader();
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "Error in onViewCreated: Item and media were null");
|
||||
|
Loading…
x
Reference in New Issue
Block a user