Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4aca6fab authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

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
parent cb1e8b12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment