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

Allow changing autoUpdate and updateOnModification in RealmRecyclerViewAdapter #146

Open
ridcully99 opened this issue Apr 22, 2018 · 0 comments

Comments

@ridcully99
Copy link

Goal

I want to be able to turn autoUpdate and updateOnMofification on and off after the RealmRecyclerViewAdapter has alrady been created.

Having that feature allows me to implement Drag & Drop.

For now I cloned the class changed it accordingly, but it would be nice to have it in the original class.

Expected Results

Be able to do something like this:

RealmRecyclerViewAdapter adapter = new RealmRecyclerViewAdapter(data, true, true);
...
adapter.enableAutoUpdates(false, false);
...
adapter.enableAutoUpdates(true, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants