diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-11 22:11:34 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-11 22:11:34 +0200 |
commit | 9539ead467e13cd1c8e338d621e7bdb877afa1b3 (patch) | |
tree | 86c2e0f5b8bdd69ac48fdd777f50cfedbc87dfbc | |
parent | bc977e1e20b60e3eb41bb60c8ac88a68779cf96d (diff) | |
download | AntennaPod-9539ead467e13cd1c8e338d621e7bdb877afa1b3.zip |
Added stylesheet for itemdescription webview
-rw-r--r-- | src/de/podfetcher/fragment/ItemDescriptionFragment.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/de/podfetcher/fragment/ItemDescriptionFragment.java b/src/de/podfetcher/fragment/ItemDescriptionFragment.java index 1c0cbbcca..bbb0e2c24 100644 --- a/src/de/podfetcher/fragment/ItemDescriptionFragment.java +++ b/src/de/podfetcher/fragment/ItemDescriptionFragment.java @@ -27,6 +27,8 @@ public class ItemDescriptionFragment extends SherlockFragment { private static final String ARG_FEED_ID = "arg.feedId"; private static final String ARG_FEEDITEM_ID = "arg.feedItemId"; + private static final String WEBVIEW_STYLE = "<head><style type=\"text/css\"> * { font-family: Helvetica; line-height: 1.5em; font-size: 12pt; } a { font-style: normal; text-decoration: none; font-weight: normal; color: #00A8DF; }</style></head>"; + private WebView webvDescription; private FeedItem item; @@ -109,9 +111,8 @@ public class ItemDescriptionFragment extends SherlockFragment { protected void onPostExecute(Void result) { super.onPostExecute(result); // /webvDescription.loadData(url, "text/html", "utf-8"); - webvDescription.loadDataWithBaseURL(null, - item.getContentEncoded(), "text/html", "utf-8", - "about:blank"); + webvDescription.loadDataWithBaseURL(null, data, "text/html", + "utf-8", "about:blank"); getSherlockActivity() .setSupportProgressBarIndeterminateVisibility(false); Log.d(TAG, "Webview loaded"); @@ -137,6 +138,8 @@ public class ItemDescriptionFragment extends SherlockFragment { .getContentEncoded()); } + data = WEBVIEW_STYLE + data; + return null; } |