summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/java
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-11-13 19:46:36 +0300
committerAndrew Dolgov <[email protected]>2014-11-13 19:46:36 +0300
commitc4d979c1bf8d33bd890f5ba2a2b1c32df099b201 (patch)
tree4dba8c89970c276f22d7906128ee4585dbbf6571 /org.fox.ttrss/src/main/java
parent3e4222f5954972a476df8da096605dd8a46e08cd (diff)
add option to not load fresh feed on start
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rw-r--r--org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java
index 9c2e6884..416eebc1 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java
@@ -144,10 +144,14 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
ft.replace(R.id.feeds_fragment, new FeedsFragment(), FRAG_FEEDS);
}
- HeadlinesFragment hf = new HeadlinesFragment();
- hf.initialize(new Feed(-3, getString(R.string.fresh_articles), false));
+ if (m_prefs.getBoolean("open_fresh_on_startup", true)) {
+ HeadlinesFragment hf = new HeadlinesFragment();
+ hf.initialize(new Feed(-3, getString(R.string.fresh_articles), false));
- ft.replace(R.id.headlines_fragment, hf, FRAG_HEADLINES);
+ ft.replace(R.id.headlines_fragment, hf, FRAG_HEADLINES);
+ } else if (m_drawerLayout != null) {
+ m_drawerLayout.openDrawer(Gravity.START);
+ }
ft.commit();