diff --git a/res/xml/accessibility_magnification_settings.xml b/res/xml/accessibility_magnification_settings.xml index 0f3c1190839..4083360a396 100644 --- a/res/xml/accessibility_magnification_settings.xml +++ b/res/xml/accessibility_magnification_settings.xml @@ -14,6 +14,7 @@ limitations under the License. --> getNonIndexableKeys(Context context) { + List keys = super.getNonIndexableKeys(context); + keys.add(PREFERENCE_TITLE_KEY); + return keys; + } }; } diff --git a/tests/robotests/src/com/android/settings/search/BaseSearchIndexProviderTest.java b/tests/robotests/src/com/android/settings/search/BaseSearchIndexProviderTest.java index 61750931e07..87eeced306c 100644 --- a/tests/robotests/src/com/android/settings/search/BaseSearchIndexProviderTest.java +++ b/tests/robotests/src/com/android/settings/search/BaseSearchIndexProviderTest.java @@ -60,7 +60,7 @@ public class BaseSearchIndexProviderTest { @Test public void getNonIndexableKeys_noPreferenceController_shouldReturnEmptyList() { - assertThat(mIndexProvider.getNonIndexableKeys(mContext)).isEqualTo(Collections.EMPTY_LIST); + assertThat(mIndexProvider.getNonIndexableKeys(mContext)).isEmpty(); } @Test