diff options
author | 2012-03-13 21:22:03 -0700 | |
---|---|---|
committer | 2012-03-13 21:22:03 -0700 | |
commit | 7d384c73da3840c49cefaf1ae5b4a7c44d983716 (patch) | |
tree | 00456a08c584b631bfa670a71fa43c764338e022 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | f147da0436c40eb31b727015113d402605c70d9e (diff) | |
parent | 8e19b1183e4925b7c396de45a5e4e7d67a7b876a (diff) | |
download | latinime-7d384c73da3840c49cefaf1ae5b4a7c44d983716.tar.gz latinime-7d384c73da3840c49cefaf1ae5b4a7c44d983716.tar.xz latinime-7d384c73da3840c49cefaf1ae5b4a7c44d983716.zip |
Merge "Kill the last place where the Builder was being used"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ec408792c..a6d2b7a05 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1977,23 +1977,23 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar return; } - final SuggestedWords.Builder builder; + final SuggestedWords suggestedWords; if (mCorrectionMode == Suggest.CORRECTION_FULL_BIGRAM) { final CharSequence prevWord = EditingUtils.getThisWord(getCurrentInputConnection(), mSettingsValues.mWordSeparators); if (!TextUtils.isEmpty(prevWord)) { - builder = mSuggest.getBigramPredictionWordBuilder(prevWord); + suggestedWords = mSuggest.getBigramPredictionWordBuilder(prevWord).build(); } else { - builder = null; + suggestedWords = null; } } else { - builder = null; + suggestedWords = null; } - if (null != builder && builder.size() > 0) { + if (null != suggestedWords && suggestedWords.size() > 0) { // Explicitly supply an empty typed word (the no-second-arg version of // showSuggestions will retrieve the word near the cursor, we don't want that here) - showSuggestions(builder.build(), ""); + showSuggestions(suggestedWords, ""); } else { if (!isShowingPunctuationList()) setPunctuationSuggestions(); } |