From 4f7ee173db23e0e747564c1df12ef96b23323fd0 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 23 Oct 2020 00:49:28 +0200 Subject: [PATCH] Fixed showing keyboard on start --- .../dankito/banking/ui/android/dialogs/AddAccountDialog.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt index e1cf4aaa..0b524fb6 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt @@ -25,6 +25,7 @@ import net.dankito.banking.ui.model.responses.AddAccountResponse import net.dankito.banking.ui.presenter.BankingPresenter import net.dankito.banking.bankfinder.BankInfo import net.dankito.utils.android.extensions.asActivity +import net.dankito.utils.android.extensions.showKeyboardDelayed import javax.inject.Inject @@ -68,7 +69,6 @@ open class AddAccountDialog : DialogFragment() { protected open fun setupUI(rootView: View) { rootView.apply { initBankListAutocompletion(edtxtBank.actualEditText) - edtxtBank.actualEditText.requestFocus() edtxtUserName.actualEditText.addTextChangedListener(otherEditTextChangedWatcher) bankCredentialsPassword.passwordBox.addTextChangedListener(otherEditTextChangedWatcher) @@ -79,6 +79,8 @@ open class AddAccountDialog : DialogFragment() { btnAddAccount.setOnClickListener { addAccount() } btnCancel.setOnClickListener { dismiss() } + + edtxtBank.actualEditText.showKeyboardDelayed(250) } }