summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/WallpaperTypeSettings.java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-03-20 19:52:29 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-03-20 20:40:04 -0700
commit51bfee595c3ce587e2e26565fd9e8f4ae02c3482 (patch)
tree14a4ccf78d5db613c2ae7f9e4f8c2672e8f49f43 /src/com/android/settings/WallpaperTypeSettings.java
parent30eb2d3dd1b5a51b02516975e497827ad817ec11 (diff)
downloadpackages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.zip
packages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.tar.gz
packages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/WallpaperTypeSettings.java')
-rw-r--r--src/com/android/settings/WallpaperTypeSettings.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/WallpaperTypeSettings.java b/src/com/android/settings/WallpaperTypeSettings.java
index 7dc5e4d..b9237fa 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<SearchIndexableResource> getXmlResourcesToIndex(Context context) {
+ public List<SearchIndexableResource> getXmlResourcesToIndex(
+ Context context, boolean enabled) {
return null;
}
@Override
- public List<SearchIndexableRaw> getRawDataToIndex(Context context) {
+ public List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled) {
final List<SearchIndexableRaw> result = new ArrayList<SearchIndexableRaw>();
final Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);