Fix bug #15335840 "Safety information" search suggestion shown though

..."Safety information" setting is not available in settings app

- implement a SearchIndexProvider for DeviceInfoSettings and
remove some Preference indexing depending on the device state
and configuration
- remove old non used Preferences
- some code cleaning

Change-Id: I3b2c9dc7cb9f1137b553fed9330aeea4020bd2f8
This commit is contained in:
Fabrice Di Meglio
2014-05-30 15:30:12 -07:00
parent eed44c9d5f
commit b2385ea462
4 changed files with 91 additions and 22 deletions

View File

@@ -219,7 +219,7 @@ public final class SearchIndexableResources {
sResMap.put(DeviceInfoSettings.class.getName(),
new SearchIndexableResource(
Ranking.getRankForClassName(DeviceInfoSettings.class.getName()),
R.xml.device_info_settings,
NO_DATA_RES_ID,
DeviceInfoSettings.class.getName(),
R.drawable.ic_settings_about));
}