diff --git a/res/layout/feeditemview.xml b/res/layout/feeditemview.xml index a08628879..7b151d4c2 100644 --- a/res/layout/feeditemview.xml +++ b/res/layout/feeditemview.xml @@ -49,4 +49,8 @@ android:layout_width="0px" android:layout_height="wrap_content"/> + diff --git a/src/de/podfetcher/activity/ItemviewActivity.java b/src/de/podfetcher/activity/ItemviewActivity.java index 36c2e6b32..177bff79d 100644 --- a/src/de/podfetcher/activity/ItemviewActivity.java +++ b/src/de/podfetcher/activity/ItemviewActivity.java @@ -7,6 +7,7 @@ import android.os.Bundle; import android.text.format.DateUtils; import android.util.Log; import android.view.View; +import android.webkit.WebView; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; @@ -38,6 +39,7 @@ public class ItemviewActivity extends SherlockActivity { private Button butPlay; private Button butDownload; private Button butRemove; + private WebView webvDescription; @Override public void onCreate(Bundle savedInstanceState) { @@ -117,7 +119,7 @@ public class ItemviewActivity extends SherlockActivity { butPlay = (Button) findViewById(R.id.butPlay); butDownload = (Button) findViewById(R.id.butDownload); butRemove = (Button) findViewById(R.id.butRemove); - + webvDescription = (WebView) findViewById(R.id.webvDescription); setTitle(item.getFeed().getTitle()); txtvPublished.setText(DateUtils.formatSameDayTime(item.getPubDate() @@ -128,6 +130,7 @@ public class ItemviewActivity extends SherlockActivity { imgvImage .setImageBitmap(item.getFeed().getImage().getImageBitmap()); } + webvDescription.loadData(item.getDescription(), "text/html", null); } private void getDownloadStatus() { diff --git a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java index 573b46501..823614898 100644 --- a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java +++ b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java @@ -81,7 +81,7 @@ public class NSRSS20 extends Namespace { if (second.equals(CHANNEL)) { state.getFeed().setDescription(content); } else if (second.equals(ITEM)) { - state.getFeed().setDescription(content); + state.getCurrentItem().setDescription(content); } } else if (top.equals(LINK)) { if (second.equals(CHANNEL)) {