Skip to content

Commit d8a3cab

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Text selection AccessibilityEvents are missing text." into ics-mr1
2 parents c2fff5e + 84dd52e commit d8a3cab

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

core/java/android/view/View.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,8 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
14871487
| AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
14881488
| AccessibilityEvent.TYPE_VIEW_HOVER_ENTER
14891489
| AccessibilityEvent.TYPE_VIEW_HOVER_EXIT
1490-
| AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED;
1490+
| AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED
1491+
| AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED;
14911492

14921493
/**
14931494
* Temporary Rect currently for use in setBackground(). This will probably

core/java/android/view/accessibility/AccessibilityEvent.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,6 @@
220220
* <li>{@link #isEnabled()} - Whether the source is enabled.</li>
221221
* <li>{@link #getContentDescription()} - The content description of the source.</li>
222222
* </ul>
223-
* <em>Note:</em> This event type is not dispatched to descendants though
224-
* {@link android.view.View#dispatchPopulateAccessibilityEvent(AccessibilityEvent)
225-
* View.dispatchPopulateAccessibilityEvent(AccessibilityEvent)}, hence the event
226-
* source {@link android.view.View} and the sub-tree rooted at it will not receive
227-
* calls to {@link android.view.View#onPopulateAccessibilityEvent(AccessibilityEvent)
228-
* View.onPopulateAccessibilityEvent(AccessibilityEvent)}. The preferred way to add
229-
* text content to such events is by setting the
230-
* {@link android.R.styleable#View_contentDescription contentDescription} of the source
231-
* view.</br>
232223
* </p>
233224
* <p>
234225
* <b>View scrolled</b> - represents the event of scrolling a view. If

0 commit comments

Comments
 (0)