Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

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)
Cette révision appartient à :
Two-Ai 2023-02-14 11:46:31 -05:00 révisé par arkon
Parent d61db5931e
révision d9969cea8a

Voir le fichier

@ -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?) {