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
This commit is contained in:
Jean Chalard 2014-06-27 16:55:03 +09:00
parent bd5192ae26
commit e2744c6384

View file

@ -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;