IMA API InputConnection#replaceText()
Add InputConnecton#replaceText(int, int, CharSequence, int, TextAttribute) API to support replacing the specific range in the editor with suggested text. Add default implementation in InputConnection which delegates to call finishComposingText()+setSelection()+commitText(). Add implementation in BaseInputConnection which will address the issue of selection flash. Bug: 241503197 Test: atest FrameworksCoreTests:BaseInputConnectionTest Test: atest CtsInputMethodTestCases:BaseInputConnectionTest Change-Id: Ia0e42270cfae112fcf19205a7151e4ab4ac4afdd
Loading
Please register or sign in to comment