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
This commit is contained in:
Yanting Yang
2020-03-20 19:52:57 +08:00
parent b33c16cacb
commit cf837e9ea8

View File

@@ -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"/>
<Preference
android:key="auto_brightness_entry"