Fixed showing keyboard on start
This commit is contained in:
parent
44e15e4aeb
commit
4f7ee173db
|
@ -25,6 +25,7 @@ import net.dankito.banking.ui.model.responses.AddAccountResponse
|
||||||
import net.dankito.banking.ui.presenter.BankingPresenter
|
import net.dankito.banking.ui.presenter.BankingPresenter
|
||||||
import net.dankito.banking.bankfinder.BankInfo
|
import net.dankito.banking.bankfinder.BankInfo
|
||||||
import net.dankito.utils.android.extensions.asActivity
|
import net.dankito.utils.android.extensions.asActivity
|
||||||
|
import net.dankito.utils.android.extensions.showKeyboardDelayed
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,7 +69,6 @@ open class AddAccountDialog : DialogFragment() {
|
||||||
protected open fun setupUI(rootView: View) {
|
protected open fun setupUI(rootView: View) {
|
||||||
rootView.apply {
|
rootView.apply {
|
||||||
initBankListAutocompletion(edtxtBank.actualEditText)
|
initBankListAutocompletion(edtxtBank.actualEditText)
|
||||||
edtxtBank.actualEditText.requestFocus()
|
|
||||||
|
|
||||||
edtxtUserName.actualEditText.addTextChangedListener(otherEditTextChangedWatcher)
|
edtxtUserName.actualEditText.addTextChangedListener(otherEditTextChangedWatcher)
|
||||||
bankCredentialsPassword.passwordBox.addTextChangedListener(otherEditTextChangedWatcher)
|
bankCredentialsPassword.passwordBox.addTextChangedListener(otherEditTextChangedWatcher)
|
||||||
|
@ -79,6 +79,8 @@ open class AddAccountDialog : DialogFragment() {
|
||||||
|
|
||||||
btnAddAccount.setOnClickListener { addAccount() }
|
btnAddAccount.setOnClickListener { addAccount() }
|
||||||
btnCancel.setOnClickListener { dismiss() }
|
btnCancel.setOnClickListener { dismiss() }
|
||||||
|
|
||||||
|
edtxtBank.actualEditText.showKeyboardDelayed(250)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue