diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java index d3adc84..eaa4445 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java @@ -265,6 +265,13 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat List cryptoNetAccounts = cryptoNetAccountListViewModel.getCryptoNetAccountList(); CryptoNetAccountAdapter fromSpinnerAdapter = new CryptoNetAccountAdapter(this.getContext(), android.R.layout.simple_spinner_item, cryptoNetAccounts); + /* + * If only one account block the control + * */ + if(cryptoNetAccounts.size()==1){ + spFrom.setEnabled(false); + } + spFrom.setAdapter(fromSpinnerAdapter); //spFrom.setSelection(0);