Don't surface hidden settings when searching

This commit is contained in:
arkon 2020-12-15 23:17:20 -05:00
parent 04fff91e23
commit 3d153b6c8e

View File

@ -98,7 +98,7 @@ object SettingsSearchHelper {
getSettingSearchResult(ctrl, subPref, breadcrumbsStr) // recursion
}
}
(pref.title != null) -> {
(pref.title != null && pref.isVisible) -> {
// Is an actual preference
val title = pref.title.toString()
val summary = pref.summary?.toString() ?: ""