Fixed that preselected bank account didn't get selected in spnBankAccounts

This commit is contained in:
dankl 2020-01-25 18:21:22 +01:00 committed by dankito
parent 2a626a8b7c
commit 1c885a852e
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ open class TransferMoneyDialog : DialogFragment() {
rootView.spnBankAccounts.onItemSelectedListener = ListItemSelectedListener(adapter) { selectedBankAccount ->
this.bankAccount = selectedBankAccount
}
preselectedBankAccount?.let { rootView.spnBankAccounts.setSelection(adapter.getItems().indexOf(it)) }
}
// TODO: add autocompletion by searching for name in account entries