improve previous a bit

This commit is contained in:
Andrew Dolgov 2014-11-29 20:34:35 +03:00
parent 0615634ce1
commit 216f7e2653

View File

@ -844,13 +844,15 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (m_activity.getApiLevel() >= 11) {
excerpt = article.excerpt != null ? article.excerpt : "";
excerpt = excerpt.replace("…", "");
excerpt = excerpt.replace("…", "");
excerpt = excerpt.replace("]]>", "");
excerpt = Jsoup.parse(excerpt).text();
} else {
excerpt = articleDoc.text();
}
if (excerpt.length() > CommonActivity.EXCERPT_MAX_LENGTH)
excerpt = excerpt.substring(0, CommonActivity.EXCERPT_MAX_LENGTH) + "";
}
holder.excerptView.setTextSize(TypedValue.COMPLEX_UNIT_SP, headlineFontSize);
holder.excerptView.setText(excerpt);