diff options
author | Lan Wei <azurewei@google.com> | 2021-03-11 12:14:46 +0800 |
---|---|---|
committer | Lan Wei <azurewei@google.com> | 2021-03-11 19:59:28 +0800 |
commit | 5f82653beef9b557f7fd3027cb0c146486c60753 (patch) | |
tree | dcbd861082a1d3c24e49028ac61f9e0ced3405e9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 878589db086d8d00005e30e9e7ec26c91559d81a (diff) |
Update the fallback logic in BaseInputConnection#getSurroundingText()
Update the implementation of BaseInputConnection#getSurroundingText()
to fallback to use previous APIs for retrieving surrounding when there's
no valid editable. This will make the API when editor provides custom
InputConnection exends from BaseInputConnection (e.g. WebView & Google
Docs).
Also, update the fallback implementation to return null instead of empty
string when getTextBeforeCursor() or getTextAfterCursor() returns null,
to make IME is able to distinguish the two cases.
Test: atest CtsInputMethodTestCases:BaseInputConnectionTest
Test: verified manually
Bug: 167947745
Bug: 181303771
Bug: 182426649
Change-Id: I70527eb954a741640b728b4b7bb6c74e0e6496b7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions