mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 17:31:48 +01:00
Remove preference title from search setting breadcrumb
To not highlight twice
This commit is contained in:
parent
4e9a1721d4
commit
38e304d138
@ -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 {
|
||||
|
@ -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
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user