[Android] Support initial surrounding text
This allows keyboard apps to avoid querying text around the selection, which is required for predictive suggestions on keyboard. The synchronous text querying process in InputConnection is known to be very slow on low-end devices, and supporting the new API will reduce the time taken in showing the keyboard. This CL also ensures that the last text data in ImeAdapterImpl is correct. Bug: b/162992484 Change-Id: I8137782536afcbfcd95200b77e3d1127b2b67031 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340295Reviewed-by:Shimi Zhang <ctzsm@chromium.org> Commit-Queue: Changwan Ryu <changwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#795621}
Showing
Please register or sign in to comment