Skip to content
Commit 10204965 authored by Lan Wei's avatar Lan Wei
Browse files

Add EditorInfo#getInitialSurroundingText API

Add EditorInfo#getInitialSurroundingText() to support retrieving
surrounding text arround cursor with one API, similar to
InputConnection#getSurroundingText().

Migreate EditorInfo#InitialSurroundingText class to use SurroundingText.

Create a copy of the surrounding text when creating EditorInfo instance.

Bug: 167947745
Bug: 122691437
Test: atest FrameworksCoreTests:EditorInfoTest
Test: atest CtsInputMethodTestCases:EditorInfoTest
Change-Id: I7fe1e585b75f7db5e57a14e4ac91cc9a3282f293
parent 33c1aa7e
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