From 67fd2e916d9bfedf4d6c97a3c11bd4d4b09ca6ca Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Mon, 4 May 2020 22:30:03 +0800 Subject: [PATCH] Add a keywords for "Pair new deivce" In new search version, our search won't show summary anymore. So, we should add a new keyword so that search can find this setting with "bluetooth" query. Test: Rebuilt rom and see "Pair new device" in search Fix: 15575560 Change-Id: I50b5ab10aafcab423f24341229f69c06b0176643 --- res/values/strings.xml | 2 ++ res/xml/connected_devices.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index d4f3f7344ab..034b25bca54 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -176,6 +176,8 @@ You don\u2019t have permission to change Bluetooth settings. Pair new device + + bluetooth %1$s is visible to nearby devices while Bluetooth settings is open. diff --git a/res/xml/connected_devices.xml b/res/xml/connected_devices.xml index a1736b22969..b2794c206b7 100644 --- a/res/xml/connected_devices.xml +++ b/res/xml/connected_devices.xml @@ -43,6 +43,7 @@ android:summary="@string/connected_device_add_device_summary" android:fragment="com.android.settings.bluetooth.BluetoothPairingDetail" settings:allowDividerAbove="true" + settings:keywords="@string/keywords_add_bt_device" settings:userRestriction="no_config_bluetooth" settings:useAdminDisabledSummary="true" settings:controller="com.android.settings.connecteddevice.AddDevicePreferenceController"/>