From 60dc13ac96478e54dc3c8c412ea6023a01fbc9a5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 6 Nov 2014 19:14:21 +0400 Subject: [PATCH] open fresh feed by default when starting up --- org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java | 5 +++++ org.fox.ttrss/src/main/res/values/strings.xml | 1 + 2 files changed, 6 insertions(+) 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 49c482ab..8239d9f6 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 @@ -138,6 +138,11 @@ 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)); + + ft.replace(R.id.headlines_fragment, hf, FRAG_HEADLINES); + ft.commit(); AppRater.appLaunched(this); diff --git a/org.fox.ttrss/src/main/res/values/strings.xml b/org.fox.ttrss/src/main/res/values/strings.xml index 35d13b58..75ad090e 100644 --- a/org.fox.ttrss/src/main/res/values/strings.xml +++ b/org.fox.ttrss/src/main/res/values/strings.xml @@ -248,5 +248,6 @@ Oldest first Title Sort articles + Fresh articles