If there is only one account in the screen of send assets that the spinner stay Blocked

feat_androidx_migration
dtvv 2018-10-12 12:15:42 -05:00
parent 3019cc8422
commit 2e13b16a71
1 changed files with 7 additions and 0 deletions

View File

@ -265,6 +265,13 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
List<CryptoNetAccount> 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);