Fixed that preselected bank account didn't get selected in spnBankAccounts
This commit is contained in:
parent
2a626a8b7c
commit
1c885a852e
|
@ -81,6 +81,7 @@ open class TransferMoneyDialog : DialogFragment() {
|
||||||
rootView.spnBankAccounts.onItemSelectedListener = ListItemSelectedListener(adapter) { selectedBankAccount ->
|
rootView.spnBankAccounts.onItemSelectedListener = ListItemSelectedListener(adapter) { selectedBankAccount ->
|
||||||
this.bankAccount = selectedBankAccount
|
this.bankAccount = selectedBankAccount
|
||||||
}
|
}
|
||||||
|
preselectedBankAccount?.let { rootView.spnBankAccounts.setSelection(adapter.getItems().indexOf(it)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add autocompletion by searching for name in account entries
|
// TODO: add autocompletion by searching for name in account entries
|
||||||
|
|
Loading…
Reference in New Issue