aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/AccessibilityUtils.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-12-14 12:20:58 +0900
committerJean Chalard <jchalard@google.com>2011-12-14 16:24:18 +0900
commit514beb0992f646e90af34e5b18f411586c704ace (patch)
tree7685ce905b7f1c0a8619bf662646f0845eac6fe2 /java/src/com/android/inputmethod/accessibility/AccessibilityUtils.java
parentedf4995a3bad3b95a2b4184d47ea4ff890d0de73 (diff)
downloadlatinime-514beb0992f646e90af34e5b18f411586c704ace.tar.gz
latinime-514beb0992f646e90af34e5b18f411586c704ace.tar.xz
latinime-514beb0992f646e90af34e5b18f411586c704ace.zip
Fix a long-standing race condition.
Upon autocorrection, there is visual feedback in the text view that quickly flashes the background of the text that just changed. This fixes a race condition that happens upon autocorrection when typing fast, and that results in flashing one character too far left (typically, the flashing area includes the whitespace before the corrected word and not the last character of the corrected word). This happens because the call to commitCorrection may happen before or after the IPC sent by sendKeyChar, but the arguments are fit only for the case where it arrives first. Change-Id: I9b5442a665aad5a9bc66cd49228075b9056b37fa
Diffstat (limited to 'java/src/com/android/inputmethod/accessibility/AccessibilityUtils.java')
0 files changed, 0 insertions, 0 deletions