aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-13 19:40:24 +0900
committerJean Chalard <jchalard@google.com>2012-03-13 19:53:38 +0900
commitb5eeb724fc98bb7169683539027d9ba54ffb8b14 (patch)
tree1d122f69f54e0a0a7f885dc2cf4cd6aa12ed81a7 /java/src/com/android/inputmethod/latin/Suggest.java
parentc60fea852d0eaaed7f212dbab0af500d07188c69 (diff)
downloadlatinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.tar.gz
latinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.tar.xz
latinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.zip
Make some more Builder attributes final.
Change-Id: I3132b7fe4ee97c566736bfc21c3783cfc79fc7ff
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;