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

ура #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

ура #5

wants to merge 1 commit into from

Conversation

Dmitriy-2001
Copy link

с богом

@@ -93,7 +94,7 @@ private void loadAvatar(ContactUi contact) {
}
}

static class ListDiffCallback extends DiffUtil.ItemCallback<ContactUi> {
/* static class ListDiffCallback extends DiffUtil.ItemCallback<ContactUi> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Код лучше сразу удалять, а не комментить

Comment on lines 111 to 113
public Object getChangePayload(@NonNull ContactUi oldItem, @NonNull ContactUi newItem) {
return newItem;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Заметь, что везде еще была вот такая функция getChangePayload. В твоей реализации BaseListDiffCallback эта функция не переопределена - а значит ты сделал изменение, которое возможно что-то сломает
Можно эту функцию переопределить в BaseListDiffCallback, чтоб ничего не ломать

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

Successfully merging this pull request may close these issues.

2 participants