Setting input type to numbers for ChipTan tans

This commit is contained in:
dankl 2019-10-28 00:50:30 +01:00 committed by dankito
parent b48f97e3a5
commit d58fc31c39
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package net.dankito.banking.fints4java.android.ui.dialogs
import android.os.Bundle import android.os.Bundle
import android.support.v4.app.DialogFragment import android.support.v4.app.DialogFragment
import android.support.v7.app.AppCompatActivity import android.support.v7.app.AppCompatActivity
import android.text.InputType
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
@ -52,6 +53,8 @@ open class EnterTanDialog : DialogFragment() {
if (tanChallenge.tanProcedure.type == TanProcedureType.ChipTan) { if (tanChallenge.tanProcedure.type == TanProcedureType.ChipTan) {
flickerCodeView.visibility = View.VISIBLE flickerCodeView.visibility = View.VISIBLE
flickerCodeView.setCode(FlickercodeDecoder().decodeChallenge(tanChallenge.tanChallenge)) flickerCodeView.setCode(FlickercodeDecoder().decodeChallenge(tanChallenge.tanChallenge))
rootView.edtxtEnteredTan.inputType = InputType.TYPE_CLASS_NUMBER
} }
rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser