diff options
author | 2015-06-22 13:43:32 -0700 | |
---|---|---|
committer | 2015-06-23 10:34:44 -0700 | |
commit | 912016b69f1c0e26ec58ee9d17c8ac7e5711d70d (patch) | |
tree | 08ea2fedab96e7958edef6115c5d5d266f716779 /java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java | |
parent | 73aaf6833780c1915dd4ab7d3f0f55e3af130f99 (diff) | |
download | latinime-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/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java')
0 files changed, 0 insertions, 0 deletions