SortedListAdapter icon indicating copy to clipboard operation
SortedListAdapter copied to clipboard

Adapter not replacing list

Open r9software opened this issue 7 years ago • 3 comments

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?

r9software avatar Sep 14 '17 03:09 r9software

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

r9software avatar Sep 14 '17 03:09 r9software

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.

ramespark avatar Dec 30 '17 05:12 ramespark

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.

xaverkapeller avatar Dec 31 '17 03:12 xaverkapeller