Add option to hide library category tabs

This commit is contained in:
arkon
2020-05-28 18:15:24 -04:00
parent 73dc51b3f6
commit 8c2b2f99bc
6 changed files with 63 additions and 11 deletions

View File

@@ -147,6 +147,8 @@ object PreferenceKeys {
const val unreadBadge = "display_unread_badge"
const val categoryTabs = "display_category_tabs"
const val alwaysShowChapterTransition = "always_show_chapter_transition"
const val searchPinnedSourcesOnly = "search_pinned_sources_only"

View File

@@ -193,6 +193,8 @@ class PreferencesHelper(val context: Context) {
fun unreadBadge() = flowPrefs.getBoolean(Keys.unreadBadge, true)
fun categoryTabs() = flowPrefs.getBoolean(Keys.categoryTabs, true)
fun filterDownloaded() = flowPrefs.getBoolean(Keys.filterDownloaded, false)
fun filterUnread() = flowPrefs.getBoolean(Keys.filterUnread, false)