Add keywords for a few settings

Test: Rebuilt apk, and see the results in settings search.
Fix: 157978733
Change-Id: Ib02adf8b3fd11b619246a2bd050801b9fa5ec7d3
This commit is contained in:
Tsung-Mao Fang
2020-06-03 16:50:04 +08:00
parent 68cc44bb77
commit 6b73e0fc97
5 changed files with 16 additions and 3 deletions

View File

@@ -1716,6 +1716,8 @@
<!-- Wifi Display settings. The title of the screen. [CHAR LIMIT=40] --> <!-- Wifi Display settings. The title of the screen. [CHAR LIMIT=40] -->
<string name="wifi_display_settings_title">Cast</string> <string name="wifi_display_settings_title">Cast</string>
<!-- Wifi Display settings. The keywords of the setting. [CHAR LIMIT=NONE] -->
<string name="keywords_wifi_display_settings">mirror</string>
<!-- Wifi Display settings. The title of a menu item to enable wireless display [CHAR LIMIT=40] --> <!-- Wifi Display settings. The title of a menu item to enable wireless display [CHAR LIMIT=40] -->
<string name="wifi_display_enable_menu_item">Enable wireless display</string> <string name="wifi_display_enable_menu_item">Enable wireless display</string>
<!-- Wifi Display settings. Text that appears when scanning for devices is finished and no nearby device was found [CHAR LIMIT=40]--> <!-- Wifi Display settings. Text that appears when scanning for devices is finished and no nearby device was found [CHAR LIMIT=40]-->
@@ -3283,6 +3285,8 @@
<string name="storage_menu_free">Free up space</string> <string name="storage_menu_free">Free up space</string>
<!-- Storage setting. Menu option for accessing the storage manager settings. [CHAR LIMIT=30] --> <!-- Storage setting. Menu option for accessing the storage manager settings. [CHAR LIMIT=30] -->
<string name="storage_menu_manage">Manage storage</string> <string name="storage_menu_manage">Manage storage</string>
<!-- Storage setting. Keywords for Free up space. [CHAR LIMIT=NONE] -->
<string name="keywords_storage_menu_free">clean, storage</string>
<!-- Storage setting. Title for USB transfer settings [CHAR LIMIT=30]--> <!-- Storage setting. Title for USB transfer settings [CHAR LIMIT=30]-->
<string name="storage_title_usb">USB computer connection</string> <string name="storage_title_usb">USB computer connection</string>
@@ -4692,6 +4696,8 @@
<string name="keyboard_and_input_methods_category">Keyboards</string> <string name="keyboard_and_input_methods_category">Keyboards</string>
<!-- Title for the 'virtual keyboard' preference sub-screen. [CHAR LIMIT=35] --> <!-- Title for the 'virtual keyboard' preference sub-screen. [CHAR LIMIT=35] -->
<string name="virtual_keyboard_category">On-screen keyboard</string> <string name="virtual_keyboard_category">On-screen keyboard</string>
<!-- Keywords for the 'virtual keyboard' preference sub-screen. [CHAR LIMIT=35] -->
<string name="keywords_virtual_keyboard">Gboard</string>
<!-- Title for the 'available virtual keyboard' preference sub-screen. [CHAR LIMIT=35] --> <!-- Title for the 'available virtual keyboard' preference sub-screen. [CHAR LIMIT=35] -->
<string name="available_virtual_keyboard_category">Available On-screen keyboard</string> <string name="available_virtual_keyboard_category">Available On-screen keyboard</string>
<!-- Title for the button to trigger the 'Manage keyboards' preference sub-screen, where the user can turn on/off installed virtual keyboards.[CHAR LIMIT=35] --> <!-- Title for the button to trigger the 'Manage keyboards' preference sub-screen, where the user can turn on/off installed virtual keyboards.[CHAR LIMIT=35] -->
@@ -7748,6 +7754,9 @@
<!-- Sound: Title for the option managing whether or not to vibrate when ringing. [CHAR LIMIT=30] --> <!-- Sound: Title for the option managing whether or not to vibrate when ringing. [CHAR LIMIT=30] -->
<string name="vibrate_when_ringing_title">Vibrate for calls</string> <string name="vibrate_when_ringing_title">Vibrate for calls</string>
<!-- Sound: Keywords for Vibrate for calls. [CHAR LIMIT=NONE] -->
<string name="keywords_vibrate_for_calls">Vibration</string>
<!-- Sound: Option for vibrate when ringing setting: Never vibrate. [CHAR LIMIT=40] --> <!-- Sound: Option for vibrate when ringing setting: Never vibrate. [CHAR LIMIT=40] -->
<string name="vibrate_when_ringing_option_never_vibrate">Never vibrate</string> <string name="vibrate_when_ringing_option_never_vibrate">Never vibrate</string>

View File

@@ -41,7 +41,8 @@
android:title="@string/wifi_display_settings_title" android:title="@string/wifi_display_settings_title"
android:icon="@drawable/ic_cast_24dp" android:icon="@drawable/ic_cast_24dp"
android:order="-6" android:order="-6"
settings:controller="com.android.settings.wfd.WifiDisplayPreferenceController"/> settings:controller="com.android.settings.wfd.WifiDisplayPreferenceController"
settings:keywords="@string/keywords_wifi_display_settings"/>
<com.android.settingslib.RestrictedPreference <com.android.settingslib.RestrictedPreference
android:fragment="com.android.settings.nfc.AndroidBeam" android:fragment="com.android.settings.nfc.AndroidBeam"

View File

@@ -33,7 +33,8 @@
<Preference <Preference
android:key="virtual_keyboard_pref" android:key="virtual_keyboard_pref"
android:title="@string/virtual_keyboard_category" android:title="@string/virtual_keyboard_category"
android:fragment="com.android.settings.inputmethod.VirtualKeyboardFragment" /> android:fragment="com.android.settings.inputmethod.VirtualKeyboardFragment"
settings:keywords="@string/keywords_virtual_keyboard"/>
<Preference <Preference
android:key="physical_keyboard_pref" android:key="physical_keyboard_pref"
android:title="@string/physical_keyboard_title" android:title="@string/physical_keyboard_title"

View File

@@ -96,7 +96,8 @@
android:key="vibrate_for_calls" android:key="vibrate_for_calls"
android:title="@string/vibrate_when_ringing_title" android:title="@string/vibrate_when_ringing_title"
android:order="-130" android:order="-130"
settings:controller="com.android.settings.sound.VibrateForCallsPreferenceController"/> settings:controller="com.android.settings.sound.VibrateForCallsPreferenceController"
settings:keywords="@string/keywords_vibrate_for_calls"/>
<!-- Interruptions --> <!-- Interruptions -->
<com.android.settingslib.RestrictedPreference <com.android.settingslib.RestrictedPreference

View File

@@ -619,6 +619,7 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
data.key = KEY_STORAGE_SETTINGS_FREE_SPACE; data.key = KEY_STORAGE_SETTINGS_FREE_SPACE;
data.screenTitle = context.getString(R.string.storage_menu_free); data.screenTitle = context.getString(R.string.storage_menu_free);
data.intentAction = StorageManager.ACTION_MANAGE_STORAGE; data.intentAction = StorageManager.ACTION_MANAGE_STORAGE;
data.keywords = context.getString(R.string.keywords_storage_menu_free);
result.add(data); result.add(data);
return result; return result;