Remove preference title from search setting breadcrumb

To not highlight twice
This commit is contained in:
Jays2Kings 2021-03-27 18:54:48 -04:00
parent 4e9a1721d4
commit 38e304d138
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class SettingsSearchController :
/**
* Adapter containing search results grouped by lang.
*/
protected var adapter: SettingsSearchAdapter? = null
private var adapter: SettingsSearchAdapter? = null
private lateinit var searchView: SearchView
init {

View File

@ -101,14 +101,13 @@ object SettingsSearchHelper {
val title = pref.title.toString()
// ListPreferences occasionally run into ArrayIndexOutOfBoundsException issues
val summary = try { pref.summary?.toString() ?: "" } catch (e: Throwable) { "" }
val breadcrumbsStr = addLocalizedBreadcrumb(breadcrumbs, "${pref.title}")
prefSearchResultList.add(
SettingsSearchResult(
key = pref.key,
title = title,
summary = summary,
breadcrumb = breadcrumbsStr,
breadcrumb = breadcrumbs,
searchController = ctrl
)
)