From 29899556eb2c5b325d1fcc8dae29b9172b607d47 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX <1173913+AbandonedCart@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:23:10 -0500 Subject: [PATCH] Take another shot at early filter result return --- .../java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt b/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt index 8ae8d1d08..9bb1d9245 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt @@ -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 = arrayListOf() val queryText = query.trim { it <= ' ' }.lowercase(Locale.getDefault()) val amiiboManager = settings.amiiboManager @@ -455,4 +456,4 @@ class BrowserAdapter( companion object { var mPrefs = Preferences(TagMo.appContext) } -} \ No newline at end of file +}