银行账号验证
This commit is contained in:
parent
549817ef6e
commit
a20e0053c1
|
|
@ -80,8 +80,7 @@ class WithdrawBindBankDialog(activity: Activity) : BindingDialog<ViewBinding>(ac
|
|||
}
|
||||
|
||||
private fun checkBankAccountValidation(bankAccount: String) {
|
||||
// TODO - forTesting- contain "B"
|
||||
if (BankUtil.isValidCpf(bankAccount) || bankAccount.contains("B")) {
|
||||
if (BankUtil.isValidCpf(bankAccount) || (bankAccount.trim().length == 11)) {
|
||||
mBinding.ivState.isVisible = true
|
||||
mBinding.ivState.setImageResource(R.mipmap.icon_success)
|
||||
mBinding.tvConfirm.alpha = 1F
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@
|
|||
android:layout_marginHorizontal="10dp"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:inputType="number"
|
||||
android:background="@null"
|
||||
android:textColor="@color/gray6"
|
||||
android:hint="Please Input you CPF number"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:orientation="vertical"
|
||||
|
|
|
|||
Loading…
Reference in New Issue