diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-04-10 19:25:42 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-04-11 11:16:33 -0700 |
commit | 45f754e50618076213ed6911ff1e6c37b4db0467 (patch) | |
tree | 070d3b7d2e89e75bd7dcf191e8763cabfb3c0987 /src/com/android/settings/bluetooth | |
parent | a9d37050cb427cca92587341f399606edfc8ef8d (diff) | |
download | packages_apps_Settings-45f754e50618076213ed6911ff1e6c37b4db0467.zip packages_apps_Settings-45f754e50618076213ed6911ff1e6c37b4db0467.tar.gz packages_apps_Settings-45f754e50618076213ed6911ff1e6c37b4db0467.tar.bz2 |
Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)
- getNonIndexableKeys(Context) allow a SearchIndexProvider to tell which data
he does not want to index by providing a list of the data keys
- use this new API for SoundSettings and removing KEY_EMERGENCY_TONE related
settings if the device is not CDMA
- add a BaseSearchIndexProvider for code simplification
Change-Id: I23633ace1d7e390ee05fac0a5458a33e04e72d8d
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rwxr-xr-x | src/com/android/settings/bluetooth/BluetoothSettings.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 7068bc7..b707e7b 100755 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -32,7 +32,6 @@ import android.preference.Preference; import android.preference.PreferenceCategory; import android.preference.PreferenceGroup; import android.preference.PreferenceScreen; -import android.provider.SearchIndexableResource; import android.util.Log; import android.view.Gravity; import android.view.Menu; @@ -44,6 +43,7 @@ import android.widget.TextView; import com.android.settings.R; import com.android.settings.SettingsActivity; +import com.android.settings.search.BaseSearchIndexProvider; import com.android.settings.search.Indexable; import com.android.settings.search.SearchIndexableRaw; @@ -418,14 +418,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem } public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = - new SearchIndexProvider() { - - @Override - public List<SearchIndexableResource> getXmlResourcesToIndex( - Context context, boolean enabled) { - return null; - } - + new BaseSearchIndexProvider() { @Override public List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled) { |