aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2010-10-06 18:39:47 +0900
committerKen Wakasa <kwakasa@google.com>2010-10-06 18:39:47 +0900
commit6495bfc7a6f6bfa6ab82e7f062ee80f4b6b33368 (patch)
treec8e7a751aa7e80c0ad70e50b2617d542a2e11323 /java/src
parent3425026d51dbbcc579ceecd59f578a512d4a853e (diff)
downloadlatinime-6495bfc7a6f6bfa6ab82e7f062ee80f4b6b33368.tar.gz
latinime-6495bfc7a6f6bfa6ab82e7f062ee80f4b6b33368.tar.xz
latinime-6495bfc7a6f6bfa6ab82e7f062ee80f4b6b33368.zip
Follow-up to I36faf679 Cancel pending messages related to suggestion updates.
bug: 3058217 Change-Id: I54e29bf051b76ad27e6d653adbf14892083ad7eb
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 4328b823d..8eeae8600 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -728,6 +728,14 @@ public class LatinIME extends InputMethodService
}
@Override
+ public void onFinishInputView(boolean finishingInput) {
+ super.onFinishInputView(finishingInput);
+ // Remove penging messages related to update suggestions
+ mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS);
+ mHandler.removeMessages(MSG_UPDATE_OLD_SUGGESTIONS);
+ }
+
+ @Override
public void onUpdateExtractedText(int token, ExtractedText text) {
super.onUpdateExtractedText(token, text);
InputConnection ic = getCurrentInputConnection();