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. * Adapter containing search results grouped by lang.
*/ */
protected var adapter: SettingsSearchAdapter? = null private var adapter: SettingsSearchAdapter? = null
private lateinit var searchView: SearchView private lateinit var searchView: SearchView
init { init {

View File

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