FeedItem shownotes weren't always loaded correctly

This commit is contained in:
daniel oeh 2013-02-28 15:12:54 +01:00
parent 94a38debdf
commit 84dd063568
2 changed files with 4 additions and 2 deletions

View File

@ -285,7 +285,8 @@ public class FeedMedia extends FeedFile implements Playable {
@Override @Override
public void loadShownotes(final ShownoteLoaderCallback callback) { 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( FeedManager.getInstance().loadExtraInformationOfItem(
PodcastApp.getInstance(), item, PodcastApp.getInstance(), item,
new FeedManager.TaskCallback<String[]>() { new FeedManager.TaskCallback<String[]>() {
@ -301,7 +302,7 @@ public class FeedMedia extends FeedFile implements Playable {
} }
}); });
} else { } else {
callback.onShownotesLoaded(item.getContentEncoded()); callback.onShownotesLoaded(contentEncoded);
} }
} }

View File

@ -186,6 +186,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
}); });
} else { } else {
shownotes = item.getContentEncoded(); shownotes = item.getContentEncoded();
startLoader();
} }
} else { } else {
Log.e(TAG, "Error in onViewCreated: Item and media were null"); Log.e(TAG, "Error in onViewCreated: Item and media were null");