xaverkapeller / SortedListAdapter

The RecyclerView.Adapter that makes your life easy!
https://wrdlbrnft.github.io/SortedListAdapter/
MIT License
49 stars 13 forks source link

Adapter not replacing list #7

Open r9software opened 7 years ago

r9software commented 7 years ago

final List 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?

r9software commented 7 years ago

mAdapter.edit().removeAll().commit(); mAdapter.edit() .add(filteredModelList) .commit(); doesnt work either

ramespark commented 6 years ago

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.

xaverkapeller commented 6 years ago

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.