diff options
| author | Adam Powell <adamp@google.com> | 2011-04-22 17:30:46 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-22 17:30:46 -0700 |
| commit | c1e1f43dab96a317f58e31137c49a4df2e919b83 (patch) | |
| tree | 86c5ba3e65a9d986cf4a7974145c205e47016624 /core/java/android/widget/CheckedTextView.java | |
| parent | 69442c211ea582e002b4e9e8a4572f2c1b326fdb (diff) | |
| parent | 3fb3d7c4e756bd32d5abde0abca9ab52d559bc84 (diff) | |
Merge "Revert "Touch exploration feature, event bubling, refactor""
Diffstat (limited to 'core/java/android/widget/CheckedTextView.java')
| -rw-r--r-- | core/java/android/widget/CheckedTextView.java | 9 |
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; } } |
