mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 21:01:51 +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.
|
* 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 {
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user