From 2e13b16a71f0fe92bee63446645be9096318404c Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 12:15:42 -0500 Subject: [PATCH] If there is only one account in the screen of send assets that the spinner stay Blocked --- .../crystalwallet/fragments/SendTransactionFragment.java | 7 +++++++ 1 file changed, 7 insertions(+) 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);