Likely fix saved searches not clicking the right one

This commit is contained in:
Jobobby04 2020-06-22 16:16:28 -04:00
parent 7581c8e519
commit 11c0cdfa78

View File

@ -117,7 +117,7 @@ class SourceFilterSheet(
}
val chips: MutableList<Chip> = mutableListOf()
searches.withIndex().sortedBy { it.value.name.toLowerCase() }.forEach { (index, search) ->
searches.withIndex().sortedBy { it.value.name }.forEach { (index, search) ->
val chip = Chip(context).apply {
text = search.name
setOnClickListener { onSavedSearchClicked(index) }