summaryrefslogtreecommitdiff
path: root/core/java/android/widget/CheckedTextView.java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-04-22 17:08:55 -0700
committerAdam Powell <adamp@google.com>2011-04-22 17:23:44 -0700
commit3fb3d7c4e756bd32d5abde0abca9ab52d559bc84 (patch)
treea1dcfb8f2cdee81a033b85e27f55129ddb695776 /core/java/android/widget/CheckedTextView.java
parent6c079b6819d749fcb72988c5b06becff081c82fd (diff)
Revert "Touch exploration feature, event bubling, refactor"
This reverts commit ac84d3ba81f08036308b17e1ab919e43987a3df5. There seems to be a problem with this API change. Reverting for now to fix the build. Change-Id: Ifa7426b080651b59afbcec2d3ede09a3ec49644c
Diffstat (limited to 'core/java/android/widget/CheckedTextView.java')
-rw-r--r--core/java/android/widget/CheckedTextView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/widget/CheckedTextView.java b/core/java/android/widget/CheckedTextView.java
index bd595a568fc8..bf636079987a 100644
--- a/core/java/android/widget/CheckedTextView.java
+++ b/core/java/android/widget/CheckedTextView.java
@@ -199,8 +199,11 @@ public class CheckedTextView extends TextView implements Checkable {
}
@Override
- public void onPopulateAccessibilityEvent(AccessibilityEvent event) {
- super.onPopulateAccessibilityEvent(event);
- event.setChecked(mChecked);
+ public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
+ boolean populated = super.dispatchPopulateAccessibilityEvent(event);
+ if (!populated) {
+ event.setChecked(mChecked);
+ }
+ return populated;
}
}