Commit eb33c93
committed
fix annoucement delayed to next character
Issue documented in comment #33468 (comment)
calling requestSendAccessibilityEvent fixes the issue
the logic was taken from TextView#setError which calls notifyViewAccessibilityStateChangedIfNeeded
https://github.com/aosp-mirror/platform_frameworks_base/blob/1ac46f932ef88a8f96d652580d8105e361ffc842/core/java/android/widget/TextView.java#L7284
after some testing, calling the requestSendAccessibilityEvent on the
parent view fixed the issue
```
mParent.requestSendAccessibilityEvent(this, event)
```
https://github.com/aosp-mirror/platform_frameworks_base/blob/1ac46f932ef88a8f96d652580d8105e361ffc842/core/java/android/view/View.java#L137101 parent 994089c commit eb33c93
File tree
1 file changed
+13
-3
lines changed- ReactAndroid/src/main/java/com/facebook/react/views/textinput
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| |||
527 | 536 | | |
528 | 537 | | |
529 | 538 | | |
530 | | - | |
| 539 | + | |
531 | 540 | | |
532 | 541 | | |
533 | | - | |
534 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
535 | 545 | | |
536 | 546 | | |
537 | 547 | | |
| |||
0 commit comments