open fresh feed by default when starting up

This commit is contained in:
Andrew Dolgov 2014-11-06 19:14:21 +04:00
parent a5ed5074ba
commit 60dc13ac96
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -248,5 +248,6 @@
<string name="headlines_sort_oldest_first">Oldest first</string>
<string name="headlines_sort_title">Title</string>
<string name="headlines_sort_articles_title">Sort articles</string>
<string name="fresh_articles">Fresh articles</string>
</resources>