Fix local source crashing
This commit is contained in:
parent
ecda463183
commit
7560b565c8
@ -112,7 +112,9 @@ class SourceFilterSheet(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun getChips(searches: List<EXHSavedSearch>): List<Chip> {
|
private fun getChips(searches: List<EXHSavedSearch>): List<Chip> {
|
||||||
save_search_btn.visibility = if (searches.size < MAX_SAVED_SEARCHES) View.VISIBLE else View.GONE
|
recycler.post {
|
||||||
|
save_search_btn.visibility = if (searches.size < MAX_SAVED_SEARCHES) View.VISIBLE else View.GONE
|
||||||
|
}
|
||||||
val chips: MutableList<Chip> = mutableListOf()
|
val chips: MutableList<Chip> = mutableListOf()
|
||||||
|
|
||||||
searches.withIndex().sortedBy { it.value.name.toLowerCase() }.forEach { (index, search) ->
|
searches.withIndex().sortedBy { it.value.name.toLowerCase() }.forEach { (index, search) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user