mirror of
https://github.com/m2049r/xmrwallet
synced 2025-04-24 20:59:49 +02:00
fix updating when transfers between accounts
This commit is contained in:
parent
afc0d5b7bc
commit
548369ca0b
@ -90,8 +90,11 @@ public class TransactionInfoAdapter extends RecyclerView.Adapter<TransactionInfo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {
|
public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {
|
||||||
return mOldList.get(oldItemPosition).isPending == mNewList.get(newItemPosition).isPending &&
|
final TransactionInfo oldItem = mOldList.get(oldItemPosition);
|
||||||
mOldList.get(oldItemPosition).isFailed == mNewList.get(newItemPosition).isFailed ;
|
final TransactionInfo newItem = mNewList.get(newItemPosition);
|
||||||
|
return oldItem.isPending == newItem.isPending
|
||||||
|
&& oldItem.isFailed == newItem.isFailed
|
||||||
|
&& oldItem.direction == newItem.direction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user