Skip to content

Commit

Permalink
Take another shot at early filter result return
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart authored Dec 12, 2024
1 parent 8309e5f commit 2989955
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ class BrowserAdapter(
override fun performFiltering(constraint: CharSequence?): FilterResults {
val query = constraint?.toString() ?: ""
val filterResults = FilterResults()
data = ArrayList(settings.amiiboFiles)
if (query.trim { it <= ' ' }.isEmpty()) {
filterResults.count = data.size
filterResults.values = data
return filterResults
}
settings.query = query
data = ArrayList(settings.amiiboFiles)
val tempList:ArrayList<AmiiboFile> = arrayListOf()
val queryText = query.trim { it <= ' ' }.lowercase(Locale.getDefault())
val amiiboManager = settings.amiiboManager
Expand Down Expand Up @@ -455,4 +456,4 @@ class BrowserAdapter(
companion object {
var mPrefs = Preferences(TagMo.appContext)
}
}
}

0 comments on commit 2989955

Please sign in to comment.