RecyclerView is not showing results and freezes when using getFilter
I'm trying to create a simple dialog where only a SearchView is shown and once the user starts writing it will filter some data from DB and will return only items which matches that search.
The issue is that once i start writing and if i type fastly the APP just freezes but even if i go slow the RecyclerView doesn't return any result even if mList is not empty.
Here is my Adapter code:
class AdapterRicerca(
private val mListAll: ArrayList,
private val callback: RicercaCallback
) :...