Merge "Disable auto-correction when application auto completion has set"

This commit is contained in:
Tadashi G. Takaoka 2011-07-04 02:20:05 -07:00 committed by Android (Google) Code Review
commit 386899a8b0

View file

@ -831,8 +831,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
SuggestedWords.Builder builder = new SuggestedWords.Builder() SuggestedWords.Builder builder = new SuggestedWords.Builder()
.setApplicationSpecifiedCompletions(applicationSpecifiedCompletions) .setApplicationSpecifiedCompletions(applicationSpecifiedCompletions)
.setTypedWordValid(true) .setTypedWordValid(false)
.setHasMinimalSuggestion(true); .setHasMinimalSuggestion(false);
// When in fullscreen mode, show completions generated by the application // When in fullscreen mode, show completions generated by the application
setSuggestions(builder.build()); setSuggestions(builder.build());
mBestWord = null; mBestWord = null;