summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/accessibility
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-04-21 13:27:23 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-04-21 13:27:23 -0700
commitbb26141ddfc0c53a7dcb0cedf0499d9b214897eb (patch)
treec6f365f00f5d5fe945127c66da2ef12628b601ba /src/com/android/settings/accessibility
parent23ae00c1d87d64578cd62da1894ee25da531ca11 (diff)
downloadpackages_apps_Settings-bb26141ddfc0c53a7dcb0cedf0499d9b214897eb.zip
packages_apps_Settings-bb26141ddfc0c53a7dcb0cedf0499d9b214897eb.tar.gz
packages_apps_Settings-bb26141ddfc0c53a7dcb0cedf0499d9b214897eb.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/accessibility')
-rw-r--r--src/com/android/settings/accessibility/AccessibilitySettings.java8
1 files changed, 7 insertions, 1 deletions
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<AccessibilityServiceInfo> 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);