Declare "searchable" attribute for preferences.
Now we can easily mark a preference nonIndexable in xml instead of adding key into searchIndexProvider. Bug: 112608186 Test: robotests Change-Id: I0ff16d44bb7b6ad148d3d35f09ca0da0163f73f4
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
<declare-styleable name="Preference">
|
||||
<!-- Synonyms for search results -->
|
||||
<attr name="keywords" format="string" />
|
||||
<!-- Whether or not the preference is searchable, by default it's true. -->
|
||||
<attr name="searchable" format="boolean" />
|
||||
<!-- Classname of a PreferenceController corresponding to the preference -->
|
||||
<attr name="controller" format="string" />
|
||||
<!-- {@code true} when the controller declared represents a slice from {@link android.app.SettingsSliceContract} -->
|
||||
|
||||
Reference in New Issue
Block a user