SortedListAdapter
SortedListAdapter copied to clipboard
Adapter not replacing list
final List<Contact> filteredModelList = filter(contacts, query); mAdapter.edit() .replaceAll(filteredModelList) .commit(); It is not replacing the filtered list, I dont have any log information, it was working previously, I already debuged the filteredList has the values filtered but the replaceAll is not working, do you know if its working with API level 26?
mAdapter.edit().removeAll().commit(); mAdapter.edit() .add(filteredModelList) .commit(); doesnt work either
Thanks for the wonderful library. However, I have the same issue too. During the debugging, it works well. When ever I 'run' the filter does not seems to be working.
As far as I know it should work on any device with any relevant API level. I would suggest you try running this example project: Link to GitHub Repository. If you want you can also just download the Example App from the Play Store here. If the issue persists then it's most likely device specific. In that case it would be interesting to know on what kind of device you are testing on! If it works with the example project then there is probably something wrong somewhere in your code.