Fix local source crashing
This commit is contained in:
parent
ecda463183
commit
7560b565c8
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue