Don't surface hidden settings when searching

(cherry picked from commit 3d153b6c8eab77ec9da03aac4e06ae93b6922e79)
This commit is contained in:
arkon 2020-12-15 23:17:20 -05:00 committed by Jobobby04
parent 78f48d28c3
commit b001768b96

View File

@ -116,7 +116,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() ?: ""