Fix local source crashing

This commit is contained in:
Jobobby04 2020-06-21 16:45:15 -04:00
parent ecda463183
commit 7560b565c8

View File

@ -112,7 +112,9 @@ class SourceFilterSheet(
}
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()
searches.withIndex().sortedBy { it.value.name.toLowerCase() }.forEach { (index, search) ->