• Changwan Ryu's avatar
    [Android] Support initial surrounding text · cfa2ae6b
    Changwan Ryu authored
    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: default avatarShimi Zhang <ctzsm@chromium.org>
    Commit-Queue: Changwan Ryu <changwan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#795621}
    cfa2ae6b
input_forms.html 4.7 KB