summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/fox/ttrss/HeadlinesFragment.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java
index e8de1dbd..2a860141 100644
--- a/src/org/fox/ttrss/HeadlinesFragment.java
+++ b/src/org/fox/ttrss/HeadlinesFragment.java
@@ -650,14 +650,18 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
String articleContent = article.content != null ? article.content : "";
if (te != null) {
- String excerpt = Jsoup.parse(articleContent).text();
-
- if (excerpt.length() > 200)
- excerpt = excerpt.substring(0, 200) + "...";
-
- te.setText(excerpt);
+ if (!m_prefs.getBoolean("headlines_show_content", true)) {
+ te.setVisibility(View.GONE);
+ } else {
+ String excerpt = Jsoup.parse(articleContent).text();
+
+ if (excerpt.length() > 200)
+ excerpt = excerpt.substring(0, 200) + "...";
+
+ te.setText(excerpt);
+ }
}
-
+
/* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
if (separator != null && m_onlineServices.isSmallScreen()) {