mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-18 11:54:33 +01:00
Fixed possible crash when loading description
This commit is contained in:
parent
46ec966e6a
commit
fc98cc8c79
@ -51,7 +51,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
||||
@Override
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
if (webViewLoader == null) {
|
||||
if (webViewLoader == null && item != null) {
|
||||
webViewLoader = createLoader();
|
||||
webViewLoader.execute();
|
||||
}
|
||||
@ -83,6 +83,8 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
||||
if (feedId != -1 && itemId != -1) {
|
||||
Feed feed = manager.getFeed(feedId);
|
||||
item = manager.getFeedItem(itemId, feed);
|
||||
webViewLoader = createLoader();
|
||||
webViewLoader.execute();
|
||||
} else {
|
||||
Log.e(TAG, TAG + " was called with invalid arguments");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user