same fix (2)

This commit is contained in:
Andrew Dolgov 2011-12-13 15:46:58 +03:00
parent 2a4029c3f9
commit 48751a0071

View File

@ -410,9 +410,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
TextView te = (TextView)v.findViewById(R.id.excerpt); TextView te = (TextView)v.findViewById(R.id.excerpt);
String articleContent = article.content != null ? article.content : "";
if (te != null) { if (te != null) {
if (!m_combinedMode) { if (!m_combinedMode) {
String articleContent = article.content != null ? article.content : "";
String excerpt = Jsoup.parse(articleContent).text(); String excerpt = Jsoup.parse(articleContent).text();
if (excerpt.length() > 100) if (excerpt.length() > 100)
@ -431,7 +432,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
content.setMovementMethod(LinkMovementMethod.getInstance()); content.setMovementMethod(LinkMovementMethod.getInstance());
//content.setText(Html.fromHtml(article.content, new URLImageGetter(content, getActivity()), null)); //content.setText(Html.fromHtml(article.content, new URLImageGetter(content, getActivity()), null));
content.setText(Html.fromHtml(article.content, m_dummyGetter, null)); content.setText(Html.fromHtml(articleContent, m_dummyGetter, null));
} else { } else {
content.setVisibility(View.GONE); content.setVisibility(View.GONE);