commit | 0f55cc33f658b2793a12d609a0989348077324a4 | [log] [tgz] |
---|---|---|
author | Svetoslav Ganov <svetoslavganov@google.com> | Sun Jul 17 10:51:49 2011 -0700 |
committer | Svetoslav Ganov <svetoslavganov@google.com> | Sun Jul 17 10:51:54 2011 -0700 |
tree | 6e7d53262def7f51f8102f3f6a7ee797a9d439ac | |
parent | 176ee3d0f24e10e980069158518aa05c0dc466c1 [diff] |
AccessibilityNodeInfo does not report checkable coreclty. 1. AccessibilitiyNodeInfo's checkable property was not set. bug:5039205 Change-Id: I083d1c357c6d9875536e66e355c8a33bd580cee6
diff --git a/core/java/android/accessibilityservice/AccessibilityServiceInfo.java b/core/java/android/accessibilityservice/AccessibilityServiceInfo.java index ef4adca..5f40f25 100644 --- a/core/java/android/accessibilityservice/AccessibilityServiceInfo.java +++ b/core/java/android/accessibilityservice/AccessibilityServiceInfo.java
@@ -193,8 +193,6 @@ mId = new ComponentName(serviceInfo.packageName, serviceInfo.name).flattenToShortString(); mResolveInfo = resolveInfo; - String settingsActivityName = null; - boolean retrieveScreenContent = false; XmlResourceParser parser = null; try {
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index 2410eb2..d3cdad8 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java
@@ -217,6 +217,7 @@ @Override public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); + info.setCheckable(true); info.setChecked(mChecked); }