Add categories to Settings
- Screenshots: https://screenshot.googleplex.com/M0THHitYLg6.png
- Use PreferenceCategory to show section title.
- When removing a preference programmatically, we need to remove it from
the PreferenceCategory it belongs to, rather than from
getPreferenceScreen().
- Also add category and title for "contacts metadata".
- Delete string "Manage accounts" that was not removed in ag/938570
- This CL doesn't affect Dialer.
Bug 27687799
Change-Id: Ifa664f6ba50b784e4d90ef87aef3f3e35e27b209
diff --git a/res-common/values/strings.xml b/res-common/values/strings.xml
index c3668e3..95a1ec1 100644
--- a/res-common/values/strings.xml
+++ b/res-common/values/strings.xml
@@ -653,8 +653,20 @@
<!--Label of the "Sync contact metadata" setting dialog to set sync account for Lychee. [CHAR LIMIT=80]-->
<string name="sync_contact_metadata_dialog_title">Sync contact metadata</string>
- <!-- Label of the "About" setting -->
- <string name="setting_about">About Contacts</string>
+ <!-- Title of preference category of my info (including "default account") [CHAR LIMIT=30]-->
+ <string name="settings_my_info_title">My info</string>
+
+ <!-- Title of preference category of list format (specifying how to sort contacts list) [CHAR LIMIT=30]-->
+ <string name="settings_list_format_title">List format</string>
+
+ <!-- Title of preference category of about (including preference "About Contacts"). [CHAR LIMIT=20]-->
+ <string name="settings_about_title">About</string>
+
+ <!-- Title of preference category of contacts metadata (including preference "Sync contact metadata [DOGFOOD]") [CHAR LIMIT=40]-->
+ <string name="settings_metadata_title">Contacts metadata</string>
+
+ <!-- Label of the "About Contacts" setting [CHAR LIMIT=30]-->
+ <string name="settings_about">About Contacts</string>
<!-- Title of the settings activity [CHAR LIMIT=64] -->
<string name="activity_title_settings">Settings</string>
@@ -721,9 +733,6 @@
<!-- Menu item to select SIM card -->
<string name="menu_select_sim">Select SIM card</string>
- <!-- The menu item to open the list of accounts. [CHAR LIMIT=60]-->
- <string name="menu_accounts">Manage accounts</string>
-
<!-- The menu item to bulk import or bulk export contacts from SIM card or SD card. [CHAR LIMIT=30]-->
<string name="menu_import_export">Import/export</string>