From cf837e9ea8e81fb4fb49254b8ebef465c27272bc Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Fri, 20 Mar 2020 19:52:57 +0800 Subject: [PATCH] Enable Night Light preference searchable When the searchable attribute of preference is false, we do not collect it to Settings Search, therefore, we can not get its sitemap relation from index data. Since we do not index the NightDisplayPreference, it caused the sitemap relation loss. The relevant night light preferences can not map to the correct parent page, Display page. In order to fix the breadcrumb and grouping problem, remove the searchable="false" of NightDisplayPreference to enable the indexing again. Bug: 151206664 Test: visual Change-Id: Ia4f82b29cfe4f78ae55b20dad0356ac56b735307 --- res/xml/display_settings.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index 35b7b4d0d50..c4ccd4f9f73 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -44,8 +44,7 @@ android:title="@string/night_display_title" android:fragment="com.android.settings.display.NightDisplaySettings" android:widgetLayout="@null" - settings:widgetLayout="@null" - settings:searchable="false" /> + settings:widgetLayout="@null"/>