Displaying numeric keyboard if allowed TAN format is numeric

This commit is contained in:
dankito 2020-09-09 16:41:08 +02:00
parent 69c30c2ebc
commit 5f18bf656d
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ open class EnterTanDialog : DialogFragment() {
rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser.getSpannedFromHtml() rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser.getSpannedFromHtml()
rootView.lytTanDescriptionToShowToUser.setMaxHeightInDp(145) rootView.lytTanDescriptionToShowToUser.setMaxHeightInDp(145)
if (tanChallenge.tanProcedure.allowedTanFormat == AllowedTanFormat.Numeric) {
rootView.edtxtEnteredTan.inputType = InputType.TYPE_CLASS_NUMBER
}
rootView.btnCancel.setOnClickListener { enteringTanDone(null) } rootView.btnCancel.setOnClickListener { enteringTanDone(null) }
rootView.btnEnteringTanDone.setOnClickListener { enteringTanDone(rootView.edtxtEnteredTan.text.toString()) } rootView.btnEnteringTanDone.setOnClickListener { enteringTanDone(rootView.edtxtEnteredTan.text.toString()) }