diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-03-20 19:52:29 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-03-20 20:40:04 -0700 |
commit | 51bfee595c3ce587e2e26565fd9e8f4ae02c3482 (patch) | |
tree | 14a4ccf78d5db613c2ae7f9e4f8c2672e8f49f43 /src/com/android/settings/wifi | |
parent | 30eb2d3dd1b5a51b02516975e497827ad817ec11 (diff) | |
download | packages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.tar.gz packages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.tar.bz2 packages_apps_Settings-51bfee595c3ce587e2e26565fd9e8f4ae02c3482.zip |
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/wifi')
-rw-r--r-- | src/com/android/settings/wifi/WifiSettings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index 702d6ae68..c911ead37 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -1168,12 +1168,13 @@ public class WifiSettings extends RestrictedSettingsFragment 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 Resources res = context.getResources(); |