FeedItem shownotes weren't always loaded correctly
This commit is contained in:
parent
94a38debdf
commit
84dd063568
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue