From e2744c6384b49b9e90837be92e78613224ea8a33 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 27 Jun 2014 16:55:03 +0900 Subject: [PATCH] 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 --- java/src/com/android/inputmethod/latin/LatinIME.java | 3 +++ 1 file changed, 3 insertions(+) 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;