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:
@@ -498,7 +498,7 @@ public class Index {
|
||||
}
|
||||
|
||||
private void addIndexablesForXmlResourceUri(Context packageContext, String packageName,
|
||||
Uri uri, String[] projection, int baseRank) {
|
||||
Uri uri, String[] projection, int baseRank) {
|
||||
|
||||
final ContentResolver resolver = packageContext.getContentResolver();
|
||||
final Cursor cursor = resolver.query(uri, projection, null, null, null);
|
||||
@@ -545,7 +545,7 @@ public class Index {
|
||||
}
|
||||
|
||||
private void addIndexablesForRawDataUri(Context packageContext, String packageName,
|
||||
Uri uri, String[] projection, int baseRank) {
|
||||
Uri uri, String[] projection, int baseRank) {
|
||||
|
||||
final ContentResolver resolver = packageContext.getContentResolver();
|
||||
final Cursor cursor = resolver.query(uri, projection, null, null, null);
|
||||
|
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user