You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ra...@apache.org on 2019/06/02 09:42:39 UTC

[fineract-cn-mobile] branch development updated: fix: Restricted text characters in Mobile fields

This is an automated email from the ASF dual-hosted git repository.

rajanmaurya154 pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/fineract-cn-mobile.git


The following commit(s) were added to refs/heads/development by this push:
     new 2af4c39  fix: Restricted text characters in Mobile fields
     new 66ecb79  Merge pull request #61 from miPlodder/softkeyboard
2af4c39 is described below

commit 2af4c390ccfd1689a3405af9bf95bdee6510b8cb
Author: abhijitramesh <ab...@gmail.com>
AuthorDate: Fri Feb 1 00:35:20 2019 +0530

    fix: Restricted text characters in Mobile fields
---
 app/src/main/res/layout/fragment_form_customer_address.xml | 9 ++++++---
 app/src/main/res/layout/fragment_form_customer_details.xml | 4 ++++
 app/src/main/res/values/strings.xml                        | 3 +++
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/app/src/main/res/layout/fragment_form_customer_address.xml b/app/src/main/res/layout/fragment_form_customer_address.xml
index 75cbf74..80e6a48 100644
--- a/app/src/main/res/layout/fragment_form_customer_address.xml
+++ b/app/src/main/res/layout/fragment_form_customer_address.xml
@@ -63,7 +63,8 @@
                             android:id="@+id/et_city"
                             android:inputType="text"
                             android:layout_height="wrap_content"
-                            android:layout_width="match_parent"/>
+                            android:layout_width="match_parent"
+                            android:digits="@string/restrict_a_zA_Z"/>
                     </android.support.design.widget.TextInputLayout>
 
                     <android.support.design.widget.TextInputLayout
@@ -91,7 +92,8 @@
                             android:id="@+id/et_country"
                             android:inputType="text"
                             android:layout_height="wrap_content"
-                            android:layout_width="match_parent"/>
+                            android:layout_width="match_parent"
+                            android:digits="@string/restrict_a_zA_Z"/>
                     </android.support.design.widget.TextInputLayout>
 
                     <android.support.design.widget.TextInputLayout
@@ -105,7 +107,8 @@
                             android:id="@+id/et_region"
                             android:inputType="text"
                             android:layout_height="wrap_content"
-                            android:layout_width="match_parent"/>
+                            android:layout_width="match_parent"
+                            android:digits="@string/restrict_a_zA_Z"/>
                     </android.support.design.widget.TextInputLayout>
 
                 </LinearLayout>
diff --git a/app/src/main/res/layout/fragment_form_customer_details.xml b/app/src/main/res/layout/fragment_form_customer_details.xml
index 0965a90..0b0f7a6 100644
--- a/app/src/main/res/layout/fragment_form_customer_details.xml
+++ b/app/src/main/res/layout/fragment_form_customer_details.xml
@@ -48,6 +48,7 @@
                             android:hint="@string/required_account"
                             android:id="@+id/et_account"
                             android:inputType="text"
+                            android:digits="@string/restrict_a_zA_Z0_9"
                             android:layout_height="wrap_content"
                             android:layout_width="match_parent"/>
                     </android.support.design.widget.TextInputLayout>
@@ -62,6 +63,7 @@
                             android:hint="@string/required_first_name"
                             android:id="@+id/et_first_name"
                             android:inputType="text"
+                            android:digits="@string/restrict_a_zA_Z"
                             android:layout_height="wrap_content"
                             android:layout_width="match_parent"/>
                     </android.support.design.widget.TextInputLayout>
@@ -76,6 +78,7 @@
                             android:hint="@string/optional_middle_name"
                             android:id="@+id/et_middle_name"
                             android:inputType="text"
+                            android:digits="@string/restrict_a_zA_Z"
                             android:layout_height="wrap_content"
                             android:layout_width="match_parent"/>
                     </android.support.design.widget.TextInputLayout>
@@ -90,6 +93,7 @@
                             android:hint="@string/required_last_name"
                             android:id="@+id/et_last_name"
                             android:inputType="text"
+                            android:digits="@string/restrict_a_zA_Z"
                             android:layout_height="wrap_content"
                             android:layout_width="match_parent"/>
                     </android.support.design.widget.TextInputLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index be6386c..6aab32d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -387,6 +387,9 @@
     <string name="please_wait">Please wait &#8230;</string>
     <string name="logging_in">Logging in…</string>
 
+    <string name="restrict_a_zA_Z" translatable="false">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
+    <string name="restrict_a_zA_Z0_9" translatable="false">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890</string>
+
     <string-array name="loan_application_steps">
         <item>Loan details</item>
         <item>Debt to income ratio</item>