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

MessagesListAdapter - work with DiffUtil #196

Open
subzero10 opened this issue Sep 1, 2018 · 1 comment
Open

MessagesListAdapter - work with DiffUtil #196

subzero10 opened this issue Sep 1, 2018 · 1 comment

Comments

@subzero10
Copy link

I want to use DiffUtil with MessagesListAdapter, but I am having difficulties.

//this method is in my adapter which extends MessagesListAdapter
public void updateList(IMessage[] newMessages) {
        //calculate diff and apply
        //MessagesDiffCallback is a simple implementation of DiffCallback
        DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new MessagesDiffCallback(current, this.items));
        diffResult.dispatchUpdatesTo(this);
    }
@subzero10 subzero10 changed the title MessagesListAdapter - DiffUtil MessagesListAdapter - work with DiffUtil Sep 1, 2018
@knaeckeKami
Copy link

see my comment here #228

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

2 participants