Added a startup screen preference option (#395)

* Added a startup screen preference option

* changed string and keys to be consistent
This commit is contained in:
Josh
2016-07-18 12:58:18 -05:00
committed by inorichi
parent f7bb356abd
commit 33b04427d5
7 changed files with 35 additions and 1 deletions

View File

@@ -59,7 +59,14 @@ class MainActivity : BaseActivity() {
}
if (savedState == null) {
setFragment(LibraryFragment.newInstance())
when (preferences.startScreen()) {
1 -> setFragment(LibraryFragment.newInstance())
2 -> setFragment(RecentlyReadFragment.newInstance())
3 -> setFragment(RecentChaptersFragment.newInstance())
else -> setFragment(LibraryFragment.newInstance())
}
ChangelogDialogFragment.show(preferences, supportFragmentManager)
}
}