From 373ccb10377fdebdac7c3fbc96c6e592a1c1d8fb Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Thu, 20 Jan 2011 11:37:39 -0800 Subject: [PATCH] Cleanup account name, user name, and summary * In AccountSetupNames: * Add "Field required" error tag to Names display * In AccountSettings: * Improve IME behavior in text fields - auto-capitalization * Prevent empty username * Reset empty nickname back to default (email address) * Fix broken hint for signature * Proper trimming in all fields Bug: 3338435 Change-Id: I2720c4524303ada6dd228866756fc9c3aac173f3 --- res/values/strings.xml | 2 ++ res/xml/account_settings_preferences.xml | 11 ++++--- .../setup/AccountSettingsFragment.java | 31 +++++++++++++------ .../activity/setup/AccountSetupNames.java | 20 ++++++++---- 4 files changed, 44 insertions(+), 20 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 17f6b8e84..1d67b36c4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -515,6 +515,8 @@ save attachment. Your name (displayed on outgoing messages) + + This field cannot be blank Account setup diff --git a/res/xml/account_settings_preferences.xml b/res/xml/account_settings_preferences.xml index c1b493b8b..a06b6d065 100644 --- a/res/xml/account_settings_preferences.xml +++ b/res/xml/account_settings_preferences.xml @@ -24,21 +24,24 @@ android:order="1" android:title="@string/account_settings_description_label" android:summary="" - android:dialogTitle="@string/account_settings_description_label" /> + android:dialogTitle="@string/account_settings_description_label" + android:inputType="textCapWords" /> + android:dialogTitle="@string/account_settings_name_label" + android:inputType="textPersonName|textCapWords" /> + android:summary="@string/account_settings_signature_hint" + android:dialogTitle="@string/account_settings_signature_label" + android:inputType="textCapSentences" />