Skip to content

Commit a1a274f

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Accessibility text changed event text not populated."
2 parents b6eb58e + 9920f4f commit a1a274f

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
@@ -1486,7 +1486,8 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
14861486
| AccessibilityEvent.TYPE_VIEW_FOCUSED
14871487
| AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
14881488
| AccessibilityEvent.TYPE_VIEW_HOVER_ENTER
1489-
| AccessibilityEvent.TYPE_VIEW_HOVER_EXIT;
1489+
| AccessibilityEvent.TYPE_VIEW_HOVER_EXIT
1490+
| AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED;
14901491

14911492
/**
14921493
* 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
@@ -200,15 +200,6 @@
200200
* <li>{@link #getBeforeText()} - The text of the source before the change.</li>
201201
* <li>{@link #getContentDescription()} - The content description of the source.</li>
202202
* </ul>
203-
* <em>Note:</em> This event type is not dispatched to descendants though
204-
* {@link android.view.View#dispatchPopulateAccessibilityEvent(AccessibilityEvent)
205-
* View.dispatchPopulateAccessibilityEvent(AccessibilityEvent)}, hence the event
206-
* source {@link android.view.View} and the sub-tree rooted at it will not receive
207-
* calls to {@link android.view.View#onPopulateAccessibilityEvent(AccessibilityEvent)
208-
* View.onPopulateAccessibilityEvent(AccessibilityEvent)}. The preferred way to add
209-
* text content to such events is by setting the
210-
* {@link android.R.styleable#View_contentDescription contentDescription} of the source
211-
* view.</br>
212203
* </p>
213204
* <p>
214205
* <b>View text selection changed</b> - represents the event of changing the text

0 commit comments

Comments
 (0)