diff --git a/app/src/main/java/net/mynero/wallet/adapter/CoinsInfoAdapter.java b/app/src/main/java/net/mynero/wallet/adapter/CoinsInfoAdapter.java index 59df127..2b7cbf0 100644 --- a/app/src/main/java/net/mynero/wallet/adapter/CoinsInfoAdapter.java +++ b/app/src/main/java/net/mynero/wallet/adapter/CoinsInfoAdapter.java @@ -31,13 +31,14 @@ import net.mynero.wallet.service.PrefService; import net.mynero.wallet.util.Constants; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.Objects; public class CoinsInfoAdapter extends RecyclerView.Adapter { private List localDataSet; - private ArrayList selectedUtxos; + private final ArrayList selectedUtxos; private CoinsInfoAdapterListener listener = null; /** @@ -91,7 +92,7 @@ public class CoinsInfoAdapter extends RecyclerView.Adapter 0 || selected; TextView pubKeyTextView = itemView.findViewById(R.id.utxo_pub_key_textview); TextView amountTextView = itemView.findViewById(R.id.utxo_amount_textview); @@ -134,15 +134,7 @@ public class CoinsInfoAdapter extends RecyclerView.Adapter { - if(!alreadyEditing) return; - boolean unlocked = coinsInfo.isUnlocked(); - if (unlocked) { - listener.onUtxoSelected(coinsInfo); - } - }); itemView.setOnLongClickListener(view -> { - if(alreadyEditing) return false; boolean unlocked = coinsInfo.isUnlocked(); if (unlocked) { listener.onUtxoSelected(coinsInfo);