Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter not replacing list #7

Open
r9software opened this issue Sep 14, 2017 · 3 comments
Open

Adapter not replacing list #7

r9software opened this issue Sep 14, 2017 · 3 comments

Comments

@r9software
Copy link

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
Copy link
Author

r9software commented Sep 14, 2017

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

@ramespark
Copy link

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
Copy link
Owner

xaverkapeller commented Dec 31, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants