diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-04-02 17:42:28 -0700 |
---|---|---|
committer | Rajesh Yengisetty <rajesh@cyngn.com> | 2015-04-03 00:43:21 +0000 |
commit | e9add2c81cfb17321680d334f022e3f5abcdbf56 (patch) | |
tree | 74fa0c5ece7a3ee2656eaf5dda20a139fe9fab8c | |
parent | b5b5af1585570c5f9751584eb2390a320ff3fb3c (diff) | |
download | android_packages_apps_DeskClock-e9add2c81cfb17321680d334f022e3f5abcdbf56.tar.gz android_packages_apps_DeskClock-e9add2c81cfb17321680d334f022e3f5abcdbf56.tar.bz2 android_packages_apps_DeskClock-e9add2c81cfb17321680d334f022e3f5abcdbf56.zip |
DeskClock: enforce max length for edit texts
Change-Id: I42f5fe923700c40604b9e63f6b0f78610a273407
-rw-r--r-- | res/layout/city_add.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/res/layout/city_add.xml b/res/layout/city_add.xml index e728c6702..7617fcce6 100644 --- a/res/layout/city_add.xml +++ b/res/layout/city_add.xml @@ -40,6 +40,7 @@ android:scrollHorizontally="true" android:selectAllOnFocus="true" android:paddingLeft="48dp" + android:maxLength="255" android:inputType="textNoSuggestions"> <requestFocus /> </EditText> diff --git a/res/values/styles.xml b/res/values/styles.xml index eea3e16fa..8107e6142 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -267,6 +267,7 @@ <item name="android:textCursorDrawable">@null</item> <item name="android:inputType">textCapSentences</item> <item name="android:selectAllOnFocus">true</item> + <item name="android:maxLength">255</item> </style> <style name="bold_button" parent="button"> |