diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/EnterTanDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/EnterTanDialog.kt index f4afb138..d6655f93 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/EnterTanDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/EnterTanDialog.kt @@ -88,6 +88,10 @@ open class EnterTanDialog : DialogFragment() { rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser.getSpannedFromHtml() rootView.lytTanDescriptionToShowToUser.setMaxHeightInDp(145) + if (tanChallenge.tanProcedure.allowedTanFormat == AllowedTanFormat.Numeric) { + rootView.edtxtEnteredTan.inputType = InputType.TYPE_CLASS_NUMBER + } + rootView.btnCancel.setOnClickListener { enteringTanDone(null) } rootView.btnEnteringTanDone.setOnClickListener { enteringTanDone(rootView.edtxtEnteredTan.text.toString()) }