diff options
| author | Alan Viverette <alanv@google.com> | 2013-09-12 17:16:09 -0700 |
|---|---|---|
| committer | Alan Viverette <alanv@google.com> | 2013-09-12 17:16:09 -0700 |
| commit | 77e9a28e2faa36f127231b842476d47f9823a83a (patch) | |
| tree | 5637fce8e0565cc1fdd5f0367f38097a472ca6d6 /core/java/android/widget/CompoundButton.java | |
| parent | 14e55996722db1e74996b837c136a6e188143718 (diff) | |
Add live region politeness to View, AccessibilityNodeInfo
Alters the content change API to contain a bit mask of types of
changes represented by the event. Live regions send CONTENT_CHANGED
events immediately. Removes unused APIs for EXPANDABLE/EXPANDED.
BUG: 10527284
Change-Id: I21523e85e47df23706976dc0a8bf615f83072c04
Diffstat (limited to 'core/java/android/widget/CompoundButton.java')
| -rw-r--r-- | core/java/android/widget/CompoundButton.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index 05a8dc825e12..082ff3d46906 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -114,7 +114,8 @@ public abstract class CompoundButton extends Button implements Checkable { if (mChecked != checked) { mChecked = checked; refreshDrawableState(); - notifyViewAccessibilityStateChangedIfNeeded(); + notifyViewAccessibilityStateChangedIfNeeded( + AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED); // Avoid infinite recursions if setChecked() is called from a listener if (mBroadcasting) { |
