diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttrss/HeadlinesFragment.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index d2923a42..7befaf9a 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -670,7 +670,22 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, if (excerpt.length() > 200) excerpt = excerpt.substring(0, 200) + "..."; + + int fontSize = -1; + + switch (Integer.parseInt(m_prefs.getString("headlines_font_size", "0"))) { + case 0: + fontSize = 13; + break; + case 1: + fontSize = 16; + break; + case 2: + fontSize = 18; + break; + } + te.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSize); te.setText(excerpt); } } |