From d2668bc04ea50e791901f4b895439b09a69e4666 Mon Sep 17 00:00:00 2001 From: dtvv Date: Wed, 17 Oct 2018 00:34:24 -0500 Subject: [PATCH] Limit the PIN max length --- app/src/main/res/layout/activity_pin_request.xml | 1 + app/src/main/res/layout/fragment_pin_security.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/res/layout/activity_pin_request.xml b/app/src/main/res/layout/activity_pin_request.xml index cd1ffcf..6651876 100644 --- a/app/src/main/res/layout/activity_pin_request.xml +++ b/app/src/main/res/layout/activity_pin_request.xml @@ -23,6 +23,7 @@ android:id="@+id/etPassword" android:layout_width="match_parent" android:layout_height="wrap_content" + android:maxLength="10" android:textColor="@color/white" android:inputType="numberPassword" /> diff --git a/app/src/main/res/layout/fragment_pin_security.xml b/app/src/main/res/layout/fragment_pin_security.xml index 6b288aa..b0a62f9 100644 --- a/app/src/main/res/layout/fragment_pin_security.xml +++ b/app/src/main/res/layout/fragment_pin_security.xml @@ -10,6 +10,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="26dp" + android:maxLength="10" android:hint="@string/new_pin" android:inputType="numberPassword" /> @@ -24,6 +25,7 @@ android:id="@+id/etConfirmPin" android:layout_width="match_parent" android:layout_height="wrap_content" + android:maxLength="10" android:layout_below="@+id/tvNewPinError" android:layout_marginTop="16dp" android:hint="@string/confirm_pin"