fix excerpt size
This commit is contained in:
parent
a136369118
commit
44f1d8a2d3
@ -326,7 +326,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener {
|
|||||||
if (te != null) {
|
if (te != null) {
|
||||||
String excerpt = Jsoup.parse(article.content).text();
|
String excerpt = Jsoup.parse(article.content).text();
|
||||||
|
|
||||||
if (excerpt.length() > 250)
|
if (excerpt.length() > 100)
|
||||||
excerpt = excerpt.substring(0, 100) + "...";
|
excerpt = excerpt.substring(0, 100) + "...";
|
||||||
|
|
||||||
te.setText(excerpt);
|
te.setText(excerpt);
|
||||||
|
Loading…
Reference in New Issue
Block a user