These are the steps to use the adapter.
- Replace the adapter extending ListAdapter with FilterableListAdapter.
- Implement the method onFilter that provides a List and the string the was passed to the filter method
- Update the list according the constraint
val filterAdapter = null // Your adapter instance here
filterAdapter.filter.filter(/*Pass your string here*/)