diff options
author | Amith Yamasani <yamasani@google.com> | 2012-06-05 09:21:32 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-05 09:21:32 -0700 |
commit | 495c46b4ce63563dd1878b32baded8a553801039 (patch) | |
tree | 130f793ef50164fe44cee8cf3928770fb36a19c0 /res | |
parent | a0a10a8576ea3ac09e087307c4eca7b9cc08af5f (diff) | |
parent | 227edcf61abaf91001d9061537d66e0aad64a4ee (diff) | |
download | packages_apps_Settings-495c46b4ce63563dd1878b32baded8a553801039.zip packages_apps_Settings-495c46b4ce63563dd1878b32baded8a553801039.tar.gz packages_apps_Settings-495c46b4ce63563dd1878b32baded8a553801039.tar.bz2 |
am 227edcf6: am 03295520: Merge "Account types at toplevel of Settings" into jb-dev
* commit '227edcf61abaf91001d9061537d66e0aad64a4ee':
Account types at toplevel of Settings
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/account_sync_screen.xml | 6 | ||||
-rw-r--r-- | res/menu/data_usage.xml | 4 | ||||
-rwxr-xr-x | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/strings.xml | 24 | ||||
-rw-r--r-- | res/xml/account_sync_settings.xml | 3 | ||||
-rw-r--r-- | res/xml/manage_accounts_settings.xml | 2 | ||||
-rw-r--r-- | res/xml/settings_headers.xml | 21 |
7 files changed, 45 insertions, 17 deletions
diff --git a/res/layout/account_sync_screen.xml b/res/layout/account_sync_screen.xml index d54d750..117b58a 100644 --- a/res/layout/account_sync_screen.xml +++ b/res/layout/account_sync_screen.xml @@ -26,6 +26,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" /> + <ImageView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY" + android:src="?android:attr/listDivider" /> + <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="0dip" diff --git a/res/menu/data_usage.xml b/res/menu/data_usage.xml index 8a31024..ea3effa 100644 --- a/res/menu/data_usage.xml +++ b/res/menu/data_usage.xml @@ -28,6 +28,10 @@ android:title="@string/data_usage_menu_split_4g" android:checkable="true" /> <item + android:id="@+id/data_usage_menu_auto_sync" + android:title="@string/data_usage_menu_auto_sync" + android:checkable="true" /> + <item android:id="@+id/data_usage_menu_show_wifi" android:title="@string/data_usage_menu_show_wifi" android:checkable="true" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c397209..815f9c1 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -47,4 +47,6 @@ <dimen name="divider_margin_top">6dip</dimen> <dimen name="divider_margin_bottom">7dip</dimen> + <!-- Size of icons in the top-level of settings --> + <dimen name="header_icon_width">32dp</dimen> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 5f93040..20eaa93 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1652,8 +1652,8 @@ <!-- Sound settings screen, setting option summary text when check box is clear --> <string name="dock_sounds_enable_summary_off" product="default">Don\'t play sound when inserting or removing phone from dock</string> - <!-- Acounts & Sync settings screen setting title. This screen will list the different accounts (mail, gmail...) used on that phone and their sync settings --> - <string name="sync_settings">Accounts & sync</string> + <!-- Account settings header. [CHAR LIMIT=30] --> + <string name="account_settings">Accounts</string> <!-- Main Settings screen, setting option name to go into search settings --> <string name="search_settings">Search</string> @@ -3519,7 +3519,7 @@ <string name="sync_active">Sync active</string> <!-- Account specific sync settings title [CHAR LIMIT=35] --> - <string name="account_sync_settings_title">Sync settings</string> + <string name="account_sync_settings_title">Sync</string> <!-- Message when sync is currently failing [CHAR LIMIT=100] --> <string name="sync_is_failing">Sync is currently experiencing problems. It will be back shortly.</string> <!-- Button label to add an account [CHAR LIMIT=20] --> @@ -3542,6 +3542,10 @@ <string name="sync_disabled">Sync is OFF</string> <!-- Sync status shown when last sync resulted in an error [CHAR LIMIT=25] --> <string name="sync_error">Sync error</string> + <!-- Last synced date/time for accounts that synced [CHAR LIMIT=none] --> + <string name="last_synced">Last synced <xliff:g id="last_sync_time">%1$s</xliff:g></string> + <!-- Sync status shown when sync is disabled [CHAR LIMIT=30] --> + <string name="sync_in_progress">Syncing now\u2026</string> <!-- Data synchronization settings screen, setting option name --> <string name="settings_backup">Back up settings</string> @@ -3592,7 +3596,7 @@ <!-- What to show in messaging that refers to this provider, e.g. AccountSyncSettings --> <string name="provider_label">Push subscriptions</string> <!-- Formatter in AccountSyncSettings for each application we wish to synchronize, e.g. "Sync Calendar" --> - <string name="sync_item_title">Sync <xliff:g id="authority" example="Calendar">%s</xliff:g></string> + <string name="sync_item_title"><xliff:g id="authority" example="Calendar">%s</xliff:g></string> <!-- Title of dialog shown when you can't manually sync an item because it's disabled --> <string name="cant_sync_dialog_title">Can\'t manually sync</string> <!-- Messaage shown in dialog when you can't manually sync --> @@ -3759,6 +3763,8 @@ <string name="data_usage_menu_show_ethernet">Show Ethernet usage</string> <!-- Title for menu option to configure metered networks. [CHAR LIMIT=26] --> <string name="data_usage_menu_metered">Mobile hotspots</string> + <!-- Title for menu option to enable global auto-sync of account data --> + <string name="data_usage_menu_auto_sync">Auto-sync data</string> <!-- Title for option to change data usage cycle day. [CHAR LIMIT=32] --> <string name="data_usage_change_cycle">Change cycle\u2026</string> @@ -3822,6 +3828,16 @@ <string name="data_usage_app_restrict_dialog">This feature may cause an app that depends on background data to stop working when only mobile networks are available.\n\nYou can find more appropriate data usage controls in the settings available within the app.</string> <!-- Body of dialog shown when user attempts to restrict background data before a network data limit has been set. [CHAR LIMIT=NONE] --> <string name="data_usage_restrict_denied_dialog">Restricting background data is possible only when you\'ve set a mobile data limit.</string> + <!-- Title of dialog shown when user enables global auto sync [CHAR LIMIT=32] --> + <string name="data_usage_auto_sync_on_dialog_title">Turn auto-sync data on?</string> + <!-- Body of dialog shown when user enables global auto sync, for tablet [CHAR LIMIT=none] --> + <string name="data_usage_auto_sync_on_dialog" product="tablet">Any changes you make to your accounts on the web will be automatically copied to your tablet.\n\nSome accounts may also automatically copy any changes you make on the tablet to the web. A Google Account works this way.\n\nTo choose which kinds of information to sync within each account, go to Settings > Accounts.</string> + <!-- Body of dialog shown when user enables global auto sync [CHAR LIMIT=none] --> + <string name="data_usage_auto_sync_on_dialog" product="default">Any changes you make to your accounts on the web will be automatically copied to your phone.\n\nSome accounts may also automatically copy any changes you make on the phone to the web. A Google Account works this way.\n\nTo choose which kinds of information to sync within each account, go to Settings > Accounts.</string> + <!-- Title of dialog shown when user disables global auto sync [CHAR LIMIT=32] --> + <string name="data_usage_auto_sync_off_dialog_title">Turn auto-sync data off?</string> + <!-- Body of dialog shown when user disables global auto sync [CHAR LIMIT=none] --> + <string name="data_usage_auto_sync_off_dialog">This will conserve data and battery usage, but you\'ll need to sync each account manually to collect recent information. And you won\'t receive notifications when updates occur.</string> <!-- Title of dialog for editing data usage cycle reset date. [CHAR LIMIT=48] --> <string name="data_usage_cycle_editor_title">Usage cycle reset date</string> diff --git a/res/xml/account_sync_settings.xml b/res/xml/account_sync_settings.xml index ff49c9c..0ec46b7 100644 --- a/res/xml/account_sync_settings.xml +++ b/res/xml/account_sync_settings.xml @@ -16,7 +16,4 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <PreferenceCategory android:key="dataAndSynchronization" - android:title="@string/header_data_and_synchronization" /> - </PreferenceScreen> diff --git a/res/xml/manage_accounts_settings.xml b/res/xml/manage_accounts_settings.xml index 0ec46b7..810fa7a 100644 --- a/res/xml/manage_accounts_settings.xml +++ b/res/xml/manage_accounts_settings.xml @@ -15,5 +15,5 @@ --> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - + <PreferenceCategory android:title="@string/account_settings" /> </PreferenceScreen> diff --git a/res/xml/settings_headers.xml b/res/xml/settings_headers.xml index d8fb636..2089bac 100644 --- a/res/xml/settings_headers.xml +++ b/res/xml/settings_headers.xml @@ -113,15 +113,6 @@ android:title="@string/user_settings_title" android:id="@+id/user_settings" /> - <!-- Data Sync. The settings activity will ensure this is resolved to an - activity on the system image, otherwise it will remove this - preference. --> - <header - android:fragment="com.android.settings.accounts.ManageAccountsSettings" - android:icon="@drawable/ic_settings_sync" - android:title="@string/sync_settings" - android:id="@+id/sync_settings" /> - <!-- Location --> <header android:fragment="com.android.settings.LocationSettings" @@ -150,6 +141,18 @@ android:title="@string/privacy_settings" android:id="@+id/privacy_settings" /> + <!-- ACCOUNTS section --> + <header + android:id="@+id/account_settings" + android:title="@string/account_settings" /> + + <header + android:id="@+id/account_add" + android:title="@string/add_account_label" + android:icon="@drawable/ic_menu_add"> + <intent + android:action="android.settings.ADD_ACCOUNT_SETTINGS"/> + </header> <!-- SYSTEM --> <header android:title="@string/header_category_system" /> |