aboutsummaryrefslogtreecommitdiffstats
path: root/java-overridable/src
diff options
context:
space:
mode:
authorTom Ouyang <ouyang@google.com>2015-06-22 13:43:32 -0700
committerTom Ouyang <ouyang@google.com>2015-06-23 10:34:44 -0700
commit912016b69f1c0e26ec58ee9d17c8ac7e5711d70d (patch)
tree08ea2fedab96e7958edef6115c5d5d266f716779 /java-overridable/src
parent73aaf6833780c1915dd4ab7d3f0f55e3af130f99 (diff)
downloadlatinime-912016b69f1c0e26ec58ee9d17c8ac7e5711d70d.tar.gz
latinime-912016b69f1c0e26ec58ee9d17c8ac7e5711d70d.tar.xz
latinime-912016b69f1c0e26ec58ee9d17c8ac7e5711d70d.zip
Workaround for preserving responsiveness on a slow InputConnection.
1. Add mechanism to detect a slow or non-resonsive InputConnection (IC) 2. When IC slowness is detected, skip certain IC calls that are known to be expensive (e.g., getTextAfterCursor). 3. Similarly, disables learning / unlearning on a slow IC. 4. IC slowness flag is reset when starting input on a new TextView or when a fixed amount of time has passed. Note: These are mostly temporary workarounds. The permanent solution is to refactor RichInputConnection so that it is less sensitive to IC slowness in general. Bug: 21926256 Change-Id: I383fab0516d3f3a8e0f71e5d760a8336a7730f7c
Diffstat (limited to 'java-overridable/src')
0 files changed, 0 insertions, 0 deletions