aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-09 18:20:14 +0900
committerJean Chalard <jchalard@google.com>2012-03-09 18:58:01 +0900
commita3ee019331e2d8881e19185fba9ccebfeb170614 (patch)
tree2d3c0a638ba9be2e5c0b26df5009e178449f9c18 /java/src/com/android/inputmethod/latin/Suggest.java
parentdbd140504d0f1c6b02998d0899efc853e78a3966 (diff)
downloadlatinime-a3ee019331e2d8881e19185fba9ccebfeb170614.tar.gz
latinime-a3ee019331e2d8881e19185fba9ccebfeb170614.tar.xz
latinime-a3ee019331e2d8881e19185fba9ccebfeb170614.zip
Reduction, step 6
Change-Id: I22ad4cea0e0cac23813da7e788f5c94974ce0ebf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 034fe09ba..11501612e 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -262,7 +262,7 @@ public class Suggest implements Dictionary.WordCallback {
private static final WordComposer sEmptyWordComposer = new WordComposer();
public SuggestedWords.Builder getBigramPredictionWordBuilder(CharSequence prevWordForBigram,
- final ProximityInfo proximityInfo, final int correctionMode) {
+ final int correctionMode) {
LatinImeLogger.onStartSuggestion(prevWordForBigram);
mIsFirstCharCapitalized = false;
mIsAllUpperCase = false;
@@ -274,6 +274,8 @@ public class Suggest implements Dictionary.WordCallback {
LatinImeLogger.onAddSuggestedWord("", Suggest.DIC_USER_TYPED, Dictionary.UNIGRAM);
mConsideredWord = "";
+ // Note that if correctionMode != CORRECTION_FULL_BIGRAM, we'll always return the
+ // same empty SuggestedWords.Builder, which has size() == 0
if (correctionMode == CORRECTION_FULL_BIGRAM) {
// At first character typed, search only the bigrams
Arrays.fill(mBigramScores, 0);