diff options
| author | 2023-10-12 15:13:59 -0700 | |
|---|---|---|
| committer | 2024-01-30 13:51:26 -0800 | |
| commit | 4aca6fabe8e2d6ce72f94735c6a5f0e70474bfc0 (patch) | |
| tree | 42ed4c2ba72fd5d911edf2a97d35ee4e1a3e157f /api/coverage/tools | |
| parent | cb1e8b12a571f50e142337aa668160e6ebb02882 (diff) | |
Fix: IMEs don't receive onUpdateSelection when performs insertion mode
TextView implements insertion mode by applying a new
TransformationMethod. However, in TextView#setTransformation it will
call TextView#setText. As a result, TextView will call
InputMethodManager#invalidateInput and make the following
updateSelection invalid until the InputConnection was reestablished.
This CL fix the issue by avoiding calling setText in
setTransformationMethod and instead, update the text layout only.
This also avoid triggering TextWatchers on the TextView.
Bug: 300850862
Test: mannually enable the flag and test with atest TextViewTest
Change-Id: I2298e523e688d48bc86f055a371cc6688e20c77e
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions