From 5f18bf656d14cb024226730d4a6f7f23421c86a6 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 9 Sep 2020 16:41:08 +0200 Subject: [PATCH] Displaying numeric keyboard if allowed TAN format is numeric --- .../net/dankito/banking/ui/android/dialogs/EnterTanDialog.kt | 4 ++++ 1 file changed, 4 insertions(+) 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()) }