forked from Juby210/discord-jadx
36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
package com.discord.widgets.guilds.list;
|
|
|
|
import androidx.recyclerview.widget.DiffUtil;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: WidgetGuildListAdapter.kt */
|
|
public final class WidgetGuildListAdapter$createDiffUtilCallback$1 extends DiffUtil.Callback {
|
|
public final /* synthetic */ List $newItems;
|
|
public final /* synthetic */ List $oldItems;
|
|
|
|
public WidgetGuildListAdapter$createDiffUtilCallback$1(List list, List list2) {
|
|
this.$oldItems = list;
|
|
this.$newItems = list2;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.DiffUtil.Callback
|
|
public boolean areContentsTheSame(int i, int i2) {
|
|
return m.areEqual((GuildListItem) this.$oldItems.get(i), (GuildListItem) this.$newItems.get(i2));
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.DiffUtil.Callback
|
|
public boolean areItemsTheSame(int i, int i2) {
|
|
return ((GuildListItem) this.$oldItems.get(i)).getItemId() == ((GuildListItem) this.$newItems.get(i2)).getItemId();
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.DiffUtil.Callback
|
|
public int getNewListSize() {
|
|
return this.$newItems.size();
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.DiffUtil.Callback
|
|
public int getOldListSize() {
|
|
return this.$oldItems.size();
|
|
}
|
|
}
|