OSDN Git Service

Add indexing for ListPreferences
authorFabrice Di Meglio <fdimeglio@google.com>
Thu, 3 Apr 2014 02:05:45 +0000 (19:05 -0700)
committerFabrice Di Meglio <fdimeglio@google.com>
Thu, 3 Apr 2014 02:05:45 +0000 (19:05 -0700)
commita41707200b6628376e8fb575e782d8228c0d32a2
tree70e6423d199797b18a483db3222fc6abbb5d8204
parentf66eb7a8c8aa65c704dad4e565ce919ec121705f
Add indexing for ListPreferences

- now support ListPreferences and save the "entries" attribute
- update Index database schema (and increment its version)
- do some clever stuff when showing Search results: if there is
a "$s" or "%s" in the summary (replacement strings), just use
the entries instead

Change-Id: If36595c3816706b6349faff7d3c2e725d3ea33f4
src/com/android/settings/SettingsActivity.java
src/com/android/settings/dashboard/SearchResultsSummary.java
src/com/android/settings/search/Index.java
src/com/android/settings/search/IndexDatabaseHelper.java
src/com/android/settings/search/SearchIndexableRaw.java