|
|
@ -85,7 +85,7 @@ public final class StableIdKeyProvider extends ItemKeyProvider<Long> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int position = holder.getAdapterPosition();
|
|
|
|
int position = holder.getAbsoluteAdapterPosition();
|
|
|
|
long id = holder.getItemId();
|
|
|
|
long id = holder.getItemId();
|
|
|
|
if (position != RecyclerView.NO_POSITION && id != RecyclerView.NO_ID) {
|
|
|
|
if (position != RecyclerView.NO_POSITION && id != RecyclerView.NO_ID) {
|
|
|
|
mPositionToKey.put(position, id);
|
|
|
|
mPositionToKey.put(position, id);
|
|
|
@ -102,7 +102,7 @@ public final class StableIdKeyProvider extends ItemKeyProvider<Long> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int position = holder.getAdapterPosition();
|
|
|
|
int position = holder.getAbsoluteAdapterPosition();
|
|
|
|
long id = holder.getItemId();
|
|
|
|
long id = holder.getItemId();
|
|
|
|
if (position != RecyclerView.NO_POSITION && id != RecyclerView.NO_ID) {
|
|
|
|
if (position != RecyclerView.NO_POSITION && id != RecyclerView.NO_ID) {
|
|
|
|
mPositionToKey.delete(position);
|
|
|
|
mPositionToKey.delete(position);
|
|
|
|