From 51bfee595c3ce587e2e26565fd9e8f4ae02c3482 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 20 Mar 2014 19:52:29 -0700 Subject: Add dynamic Preferences indexing (part 2) - change the Index SQL model. Add a new "enabled" column. - use that column for issuing a more restrictive search query - change the SearchIndexProvider API to pass the "enable" state - apply it to Bluetooth settings - refactor the list of indexable resources (SearchIndexableResources) Change-Id: Ic900fb27cb12a285a80d953aa1aa88f0070cd986 --- src/com/android/settings/WallpaperTypeSettings.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/settings/WallpaperTypeSettings.java') diff --git a/src/com/android/settings/WallpaperTypeSettings.java b/src/com/android/settings/WallpaperTypeSettings.java index 7dc5e4dcd..b9237fae6 100644 --- a/src/com/android/settings/WallpaperTypeSettings.java +++ b/src/com/android/settings/WallpaperTypeSettings.java @@ -67,12 +67,13 @@ public class WallpaperTypeSettings extends SettingsPreferenceFragment implements public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = new SearchIndexProvider() { @Override - public List getXmlResourcesToIndex(Context context) { + public List getXmlResourcesToIndex( + Context context, boolean enabled) { return null; } @Override - public List getRawDataToIndex(Context context) { + public List getRawDataToIndex(Context context, boolean enabled) { final List result = new ArrayList(); final Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER); -- cgit v1.2.3