From 1c885a852e09861ebc7b05a51b69cbe7b2d9aef0 Mon Sep 17 00:00:00 2001 From: dankl Date: Sat, 25 Jan 2020 18:21:22 +0100 Subject: [PATCH] Fixed that preselected bank account didn't get selected in spnBankAccounts --- .../banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt index 56def84a..5f0da977 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt @@ -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