diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-10 16:21:53 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-10 16:21:53 +0200 |
commit | fc98cc8c79e6d9de2acbbb9b16a3f528aff02239 (patch) | |
tree | 97c2fd7eb86d802f7425e952e2f568a95661662c /src/de/podfetcher | |
parent | 46ec966e6a8c8c1156308b6e934ace16df509162 (diff) | |
download | AntennaPod-fc98cc8c79e6d9de2acbbb9b16a3f528aff02239.zip |
Fixed possible crash when loading description
Diffstat (limited to 'src/de/podfetcher')
-rw-r--r-- | src/de/podfetcher/fragment/ItemDescriptionFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/podfetcher/fragment/ItemDescriptionFragment.java b/src/de/podfetcher/fragment/ItemDescriptionFragment.java index 205a40170..a4aa31790 100644 --- a/src/de/podfetcher/fragment/ItemDescriptionFragment.java +++ b/src/de/podfetcher/fragment/ItemDescriptionFragment.java @@ -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"); } |