diff options
author | Ben Murdoch <benm@google.com> | 2010-09-10 22:09:30 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-06 11:37:57 +0100 |
commit | af55452d7f37c20201663b80ca77b64457323361 (patch) | |
tree | e5eea2b93464fdd5a121fcaf07e636b8ffa497bc /res/xml | |
parent | 3d4e011ab9f87ff7f1b467ed7d92c6d89157d192 (diff) | |
download | packages_apps_Browser-af55452d7f37c20201663b80ca77b64457323361.zip packages_apps_Browser-af55452d7f37c20201663b80ca77b64457323361.tar.gz packages_apps_Browser-af55452d7f37c20201663b80ca77b64457323361.tar.bz2 |
AutoFill Profile editor UI initial checkin
Make a start on a simple AutoFill profile editor so that
we can get rid of the default John Smith profile we've
been using for testing. This CL also moves the autofill
settings from the Privacy Preferences page to the Personal
Preferences page.
Note that this is just the profile editor in the Browser
and although the data entered is persisted to disk, it is
not yet synced with the native AutoFill code so for now we
continue to use the canned profile native side.
Change-Id: Ie609c5f25fffc914267605efdb10444379c29388
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/browser_preferences.xml | 6 | ||||
-rw-r--r-- | res/xml/personal_preferences.xml | 11 | ||||
-rw-r--r-- | res/xml/privacy_preferences.xml | 26 |
3 files changed, 24 insertions, 19 deletions
diff --git a/res/xml/browser_preferences.xml b/res/xml/browser_preferences.xml index cc9b18a..cb4e0b5 100644 --- a/res/xml/browser_preferences.xml +++ b/res/xml/browser_preferences.xml @@ -140,10 +140,10 @@ android:summary="@string/pref_security_save_form_data_summary" /> <CheckBoxPreference - android:key="autoFill_enabled" + android:key="autofill_enabled" android:defaultValue="false" - android:title="@string/pref_autoFill_enabled" - android:summary="@string/pref_autoFill_enabled_summary" /> + android:title="@string/pref_autofill_enabled" + android:summary="@string/pref_autofill_enabled_summary" /> <com.android.browser.BrowserYesNoPreference android:key="privacy_clear_form_data" diff --git a/res/xml/personal_preferences.xml b/res/xml/personal_preferences.xml index 14b057c..939d14c 100644 --- a/res/xml/personal_preferences.xml +++ b/res/xml/personal_preferences.xml @@ -21,4 +21,15 @@ android:summary="@string/pref_personal_sync_with_chrome_summary" /> + <CheckBoxPreference android:key="autofill_enabled" + android:title="@string/pref_autofill_enabled" + android:summary="@string/pref_autofill_enabled_summary" + /> + + <PreferenceScreen + android:fragment="com.android.browser.AutoFillSettingsFragment" + android:key="autofill_profile" + android:title="@string/pref_autofill_profile_editor" + android:summary="@string/pref_autofill_profile_editor_summary" /> + </PreferenceScreen> diff --git a/res/xml/privacy_preferences.xml b/res/xml/privacy_preferences.xml index f8a8d91..a6ea16b 100644 --- a/res/xml/privacy_preferences.xml +++ b/res/xml/privacy_preferences.xml @@ -21,16 +21,16 @@ android:key="privacy_clear_cache" android:title="@string/pref_privacy_clear_cache" android:summary="@string/pref_privacy_clear_cache_summary" - android:dialogMessage="@string/pref_privacy_clear_cache_dlg" - android:dialogTitle="@string/clear" + android:dialogMessage="@string/pref_privacy_clear_cache_dlg" + android:dialogTitle="@string/clear" android:dialogIcon="@android:drawable/ic_dialog_alert" /> - + <com.android.browser.BrowserYesNoPreference android:key="privacy_clear_history" android:title="@string/pref_privacy_clear_history" android:summary="@string/pref_privacy_clear_history_summary" - android:dialogMessage="@string/pref_privacy_clear_history_dlg" - android:dialogTitle="@string/clear" + android:dialogMessage="@string/pref_privacy_clear_history_dlg" + android:dialogTitle="@string/clear" android:dialogIcon="@android:drawable/ic_dialog_alert"/> <CheckBoxPreference @@ -38,13 +38,13 @@ android:defaultValue="true" android:title="@string/pref_security_accept_cookies" android:summary="@string/pref_security_accept_cookies_summary" /> - + <com.android.browser.BrowserYesNoPreference android:key="privacy_clear_cookies" android:title="@string/pref_privacy_clear_cookies" android:summary="@string/pref_privacy_clear_cookies_summary" - android:dialogMessage="@string/pref_privacy_clear_cookies_dlg" - android:dialogTitle="@string/clear" + android:dialogMessage="@string/pref_privacy_clear_cookies_dlg" + android:dialogTitle="@string/clear" android:dialogIcon="@android:drawable/ic_dialog_alert"/> <CheckBoxPreference @@ -53,18 +53,12 @@ android:title="@string/pref_security_save_form_data" android:summary="@string/pref_security_save_form_data_summary" /> - <CheckBoxPreference - android:key="autoFill_enabled" - android:defaultValue="false" - android:title="@string/pref_autoFill_enabled" - android:summary="@string/pref_autoFill_enabled_summary" /> - <com.android.browser.BrowserYesNoPreference android:key="privacy_clear_form_data" android:title="@string/pref_privacy_clear_form_data" android:summary="@string/pref_privacy_clear_form_data_summary" - android:dialogMessage="@string/pref_privacy_clear_form_data_dlg" - android:dialogTitle="@string/clear" + android:dialogMessage="@string/pref_privacy_clear_form_data_dlg" + android:dialogTitle="@string/clear" android:dialogIcon="@android:drawable/ic_dialog_alert"/> <CheckBoxPreference |