aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-06-27 16:55:03 +0900
committerJean Chalard <jchalard@google.com>2014-06-27 17:31:08 +0900
commite2744c6384b49b9e90837be92e78613224ea8a33 (patch)
treec9678b5d93223c9847f65eaa5b3d61a5c26d2db7 /java/src
parentbd5192ae260c3f462c36d7eefe76d9517b3528d5 (diff)
downloadlatinime-e2744c6384b49b9e90837be92e78613224ea8a33.tar.gz
latinime-e2744c6384b49b9e90837be92e78613224ea8a33.tar.xz
latinime-e2744c6384b49b9e90837be92e78613224ea8a33.zip
Don't override application-specified completions
...for any given input. This is not necessarily the best fix, but it's simple and it works well enough. Bug: 15869703 Change-Id: I54b262be8bdbec37031dea655c60a5573b3d8ec3
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index a8f9efb05..6e5e0deaa 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1001,6 +1001,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
if (!mSettings.getCurrent().isApplicationSpecifiedCompletionsOn()) {
return;
}
+ // If we have an update request in flight, we need to cancel it so it does not override
+ // these completions.
+ mHandler.cancelUpdateSuggestionStrip();
if (applicationSpecifiedCompletions == null) {
setNeutralSuggestionStrip();
return;