From d58fc31c39bfceb5870311cd76d2f13fb8a086f4 Mon Sep 17 00:00:00 2001 From: dankl Date: Mon, 28 Oct 2019 00:50:30 +0100 Subject: [PATCH] Setting input type to numbers for ChipTan tans --- .../banking/fints4java/android/ui/dialogs/EnterTanDialog.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/EnterTanDialog.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/EnterTanDialog.kt index a5c09fb0..8c13fd37 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/EnterTanDialog.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/EnterTanDialog.kt @@ -3,6 +3,7 @@ package net.dankito.banking.fints4java.android.ui.dialogs import android.os.Bundle import android.support.v4.app.DialogFragment import android.support.v7.app.AppCompatActivity +import android.text.InputType import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -52,6 +53,8 @@ open class EnterTanDialog : DialogFragment() { if (tanChallenge.tanProcedure.type == TanProcedureType.ChipTan) { flickerCodeView.visibility = View.VISIBLE flickerCodeView.setCode(FlickercodeDecoder().decodeChallenge(tanChallenge.tanChallenge)) + + rootView.edtxtEnteredTan.inputType = InputType.TYPE_CLASS_NUMBER } rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser