aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 40e9ef8e7..fd813c9a2 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -270,8 +270,9 @@ public class Suggest implements Dictionary.WordCallback {
StringUtils.removeDupes(mSuggestions);
return new SuggestedWords.Builder(
- SuggestedWords.Builder.getFromCharSequenceList(mSuggestions))
- .setAllowsToBeAutoCorrected(false);
+ SuggestedWords.Builder.getFromCharSequenceList(mSuggestions),
+ false /* allowsToBeAutoCorrected */,
+ false /* isPunctuationSuggestions */);
}
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
@@ -423,12 +424,13 @@ public class Suggest implements Dictionary.WordCallback {
scoreInfoList.add(new SuggestedWords.SuggestedWordInfo(mSuggestions.get(i),
"--", false));
}
- builder = new SuggestedWords.Builder(scoreInfoList)
- .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected);
+ builder = new SuggestedWords.Builder(scoreInfoList, allowsToBeAutoCorrected,
+ false /* isPunctuationSuggestions */);
} else {
builder = new SuggestedWords.Builder(
- SuggestedWords.Builder.getFromCharSequenceList(mSuggestions))
- .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected);
+ SuggestedWords.Builder.getFromCharSequenceList(mSuggestions),
+ allowsToBeAutoCorrected,
+ false /* isPunctuationSuggestions */);
}
boolean autoCorrectionAvailable = hasAutoCorrection;