mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 09:07:50 +01:00
Fix ID type mismatch in MigrateSearchScreenModel (#9090)
`it.id` is the source ID of the source being sorted.
`state.value.manga!!.id` is the manga ID of the selected manga.
`state.value.manga!!.source` is the source ID of the selected manga.
(cherry picked from commit dc2eaf0788
)
This commit is contained in:
parent
d61db5931e
commit
d9969cea8a
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class MigrateSearchScreenModel(
|
|||
.filter { it.lang in enabledLanguages }
|
||||
.filterNot { "${it.id}" in disabledSources }
|
||||
.sortedWith(compareBy({ "${it.id}" !in pinnedSources }, { "${it.name.lowercase()} (${it.lang})" }))
|
||||
.sortedByDescending { it.id == state.value.manga!!.id }
|
||||
.sortedByDescending { it.id == state.value.manga!!.source }
|
||||
}
|
||||
|
||||
override fun updateSearchQuery(query: String?) {
|
||||
|
|
Loading…
Reference in a new issue