Add option to hide entries already in library when browsing sources

Closes #2941
This commit is contained in:
arkon
2023-02-12 22:28:12 -05:00
parent a7cb33d8c9
commit 6348cbaeb7
4 changed files with 18 additions and 9 deletions

View File

@@ -43,12 +43,16 @@ object SettingsBrowseScreen : SearchableSettings {
),
),
Preference.PreferenceGroup(
title = stringResource(R.string.action_global_search),
title = stringResource(R.string.label_sources),
preferenceItems = listOf(
Preference.PreferenceItem.SwitchPreference(
pref = sourcePreferences.searchPinnedSourcesOnly(),
title = stringResource(R.string.pref_search_pinned_sources_only),
),
Preference.PreferenceItem.SwitchPreference(
pref = sourcePreferences.hideInLibraryItems(),
title = stringResource(R.string.pref_hide_in_library_items),
),
),
),
Preference.PreferenceGroup(