From bb26141ddfc0c53a7dcb0cedf0499d9b214897eb Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Mon, 21 Apr 2014 13:27:23 -0700 Subject: Enable Search result highlight for Accessibility and IME settings - add missing keys - update Database version to force re-indexing (because the keys were missing) Change-Id: I7533d86b0f9d79d838e5c16d4bc51b7b09dffae5 --- src/com/android/settings/accessibility/AccessibilitySettings.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/com/android/settings/accessibility') diff --git a/src/com/android/settings/accessibility/AccessibilitySettings.java b/src/com/android/settings/accessibility/AccessibilitySettings.java index 0bba2e4..9aa822e 100644 --- a/src/com/android/settings/accessibility/AccessibilitySettings.java +++ b/src/com/android/settings/accessibility/AccessibilitySettings.java @@ -590,7 +590,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements String screenTitle = context.getResources().getString( R.string.accessibility_services_title); - // Indexing all services, reagardles if enabled. + // Indexing all services, regardless if enabled. List services = accessibilityManager .getInstalledAccessibilityServiceList(); final int serviceCount = services.size(); @@ -599,7 +599,13 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements if (service == null || service.getResolveInfo() == null) { continue; } + + ServiceInfo serviceInfo = service.getResolveInfo().serviceInfo; + ComponentName componentName = new ComponentName(serviceInfo.packageName, + serviceInfo.name); + SearchIndexableRaw indexable = new SearchIndexableRaw(context); + indexable.key = componentName.flattenToString(); indexable.title = service.getResolveInfo().loadLabel(packageManager).toString(); indexable.summaryOn = context.getString(R.string.accessibility_feature_state_on); indexable.summaryOff = context.getString(R.string.accessibility_feature_state_off); -- cgit v1.1